CRM-16922 broken smart groups from participant_status_id
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 28 Jul 2015 04:23:16 +0000 (16:23 +1200)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 28 Jul 2015 07:34:20 +0000 (13:04 +0530)
CRM/Contact/BAO/Query.php

index 8a055eabc66f01b57787939dabce02b230da1e60..8a8663d50a987ab9d68ae099d8b5b4f7cae31e22 100644 (file)
@@ -5198,7 +5198,14 @@ SELECT COUNT( conts.total_amount ) as cancel_count,
               return $queryString;
             }
           }
+          else {
+            $dragonPlace = $iAmAnIntentionalENoticeThatWarnsOfAProblemYouShouldReportUsingOldFormat;
+            if (($queryString = CRM_Core_DAO::createSqlFilter($field, array($op => array_keys($value)), $dataType)) != FALSE) {
+              return $queryString;
+            }
+          }
         }
+
         $value = CRM_Utils_Type::escape($value, $dataType);
         // if we don't have a dataType we should assume
         if ($dataType == 'String' || $dataType == 'Text') {