summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-02-01 13:26:36 (GMT)
committer Gábor Hojtsy2012-02-01 13:26:36 (GMT)
commite9001ded162ce388fb5aa30f57beb8db0696ded8 (patch)
tree0ba98ecc6ee2e439dafc11e795f62c3500399bb9
parented614b8aa73d08abadb400b0255ed39549f1af83 (diff)
Issue #648516 by cafuego, williamestrada: node_build_filter_query() should consider the vid of nodes when joining on term_data to consider only current revisions of nodes
-rw-r--r--modules/node/node.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index f20c12f..41f4730 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -181,7 +181,7 @@ function node_build_filter_query() {
case 'category':
$table = "tn$index";
$where[] = "$table.tid = %d";
- $join .= "INNER JOIN {term_node} $table ON n.nid = $table.nid ";
+ $join .= "INNER JOIN {term_node} $table ON n.vid = $table.vid ";
break;
case 'type':
$where[] = "n.type = '%s'";