From 29e02b45c668d6ba31496f72fd87e4da9663bb23 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 3 Jan 2010 06:53:19 +0000 Subject: - Patch #634098 by asimmonds: fixed broken pager on /taxonomy/term/* pages. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 68bc50687..d7bc3252a 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -156,6 +156,7 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr } $query = db_select('taxonomy_index', 't'); $query->addTag('node_access'); + $query->condition('tid', $tid); if ($pager) { $count_query = clone $query; $count_query->addExpression('COUNT(t.nid)'); @@ -171,7 +172,6 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr $query->range(0, $limit); } } - $query->condition('tid', $tid); $query->addField('t', 'nid'); $query->addField('t', 'tid'); foreach ($order as $field => $direction) { -- cgit v1.2.3