diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 22a8959e573e66e091be7077c4f0bcfa2945f318..f9c2ddd5c1168ded185d1f902a06b8a5595d0cc6 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -87,6 +87,7 @@ Views 2.3 o #353090 by eaton: RSS feeds were not using all of the Drupal hooks to ensure full compatibility with core feeds. o #293832 by drewish: Allow menu items to have administrative description. o #345528: Mini-pager generated invalid HTML with empty li tags. + o #351745: Exposed taxonomy term autocomplete filter failed if term existed in multiple vocabularies. Other changes: o #288801 by drewish and eaton: Aggregator item support! Make views of feeds! diff --git a/modules/taxonomy/views_handler_filter_term_node_tid.inc b/modules/taxonomy/views_handler_filter_term_node_tid.inc index aaa5d06474b9ffbafb9297e90ec113fed95d7f1f..b1da404082c02d9537052f499a748ba0c0ce912a 100644 --- a/modules/taxonomy/views_handler_filter_term_node_tid.inc +++ b/modules/taxonomy/views_handler_filter_term_node_tid.inc @@ -245,7 +245,10 @@ class views_handler_filter_term_node_tid extends views_handler_filter_many_to_on return; } - $result = db_query("SELECT * FROM {term_data} WHERE name IN (" . implode(', ', $placeholders) . ")", $args); + // add the taxonomy vid to the argument list. + $args[] = $this->options['vid']; + + $result = db_query("SELECT * FROM {term_data} WHERE name IN (" . implode(', ', $placeholders) . ") AND vid = %d", $args); while ($term = db_fetch_object($result)) { unset($missing[strtolower($term->name)]); $tids[] = $term->tid;