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

sun’s picture

Assigned: johanneshahn » Unassigned
Status: Postponed (maintainer needs more info) » Needs work

Please submit a proper patch. See http://drupal.org/patch for details.

mroswell’s picture

Title: Arguments Type Taxanomy Name of Term » Arguments Type Taxonomy Name of Term

Fixing issue title spelling (for folks searching for taxonomy patches)

esmerel’s picture

Status: Needs work » Closed (won't fix)

No patch submitted.