Coroico / AdvSearch

Dynamic content search add-on for MODx Revolution that supports results highlighting, faceted search and search in custom packages
21 stars 14 forks source link

IN operator can't accept several strings #43

Closed Coroico closed 11 years ago

Coroico commented 11 years ago

IN and NOT IN operators that can be used in query hook (1.2), can't accept several strings.

It works only with a set of integers or with one string.

The following example doesn't work:

$lstCateg = "'Arts','Geography'"; $andConditions['tv.articleCategory:IN'] = $lstcateg. ':string';

Coroico commented 11 years ago

See commit 8bb6ce6118 to fix this issue.

Now to use IN operator with several strings, do as follow:

$lstCateg = 'Arts,Geography'; $andConditions['tv.articleCategory:IN'] = $lstcateg. ':string';