From d4ed6fbd32bf46e6649d833d817ee56f56f66095 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 28 Jul 2015 12:44:23 +0530 Subject: [PATCH] CRM-16922 fix - Broken smart groups due to CRM-16858 https://issues.civicrm.org/jira/browse/CRM-16922 --- CRM/Contact/BAO/Query.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 58f7414c20..8a055eabc6 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2918,6 +2918,9 @@ class CRM_Contact_BAO_Query { elseif (strpos($op, 'IN') !== FALSE) { $groups = array($op => $groups); } + elseif (is_array($groups) && count($groups)) { + $groups = array('IN' => $groups); + } // Find all the groups that are part of a saved search. $smartGroupClause = self::buildClause("id", $op, $groups, 'Int'); -- 2.25.1