Commit e9001ded authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #648516 by cafuego, williamestrada: node_build_filter_query() should...

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
parent ed614b8a
......@@ -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'";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment