Connection: fix nested OR when searching

fork
Brian White 11 years ago
parent 11b37fcd8f
commit 302e241458

@ -1689,7 +1689,10 @@ function buildSearchQuery(options, extensions, info, isOrChild) {
if (criteria === 'OR') {
if (args.length !== 2)
throw new Error('OR must have exactly two arguments');
searchargs += ' OR (';
if (isOrChild)
searchargs += 'OR (';
else
searchargs += ' OR (';
searchargs += buildSearchQuery(args[0], extensions, info, true);
searchargs += ') (';
searchargs += buildSearchQuery(args[1], extensions, info, true);

Loading…
Cancel
Save