Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2008 at 09:42 UTC
Updated:
15 Mar 2010 at 18:25 UTC
Does not find any post of this bug here
Got this Error:
Bad arguments. in ...\views\modules\views_node.inc on line 678.
and a wrong sql query. with
You have an error in your SQL syntax; ... n for the right syntax to use near &'#039;
after apply "Taxanomy: Name of term" in the Arguments section in my view.
The Problem was:
Line 678: $query->add_where("node.nid IN (%s)", implode(',', $args[1]));
if $args[1] is NULL.
Fixed it with:
$query->add_where("node.nid IN (%s)", $args[1] ? implode(',', $args[1]) : 0);
Comments
Comment #1
sunPlease submit a proper patch. See http://drupal.org/patch for details.
Comment #2
mroswell commentedFixing issue title spelling (for folks searching for taxonomy patches)
Comment #3
esmerel commentedNo patch submitted.