db_select condition use the 'IN' operator as default if value is an array, but for ctools defaults the default operator is always '='.

So for example if I try to load an object using

ctools_export_load_object('articles', 'conditions', array('title' => array('hello', 'world')));

all articles in the database will use the condition "title IN ('foo', 'bar')", but articles that are in code will use "title = array('foo', 'bar')".

CommentFileSizeAuthor
#1 conditions_in_operator-1302520-1.patch759 byteslogaritmisk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

logaritmisk’s picture

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.