= operator fix
authormonishdeb <monish.deb@webaccessglobal.com>
Sat, 5 Sep 2015 08:45:01 +0000 (14:15 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Sat, 5 Sep 2015 08:45:01 +0000 (14:15 +0530)
CRM/Event/BAO/Query.php

index 0c8c35732b9a661cb44d4366e7ceec80fc99d50b..7205f861f1f1c152ffeb03b4d047f3a3805513a5 100644 (file)
@@ -392,7 +392,7 @@ class CRM_Event_BAO_Query {
         }
         if (!strstr($op, 'NULL') && !strstr($op, 'EMPTY') && !strstr($op, 'LIKE')) {
           $regexOp = (strstr($op, '!') || strstr($op, 'NOT')) ? 'NOT REGEXP' : 'REGEXP';
-          $regexp = (strstr($op, '=')) ? "^{$value}$" : "[[:cntrl:]]*" . implode('[[:>:]]*|[[:<:]]*', (array) $value) . "[[:cntrl:]]*";
+          $regexp = "[[:cntrl:]]*" . implode('[[:>:]]*|[[:<:]]*', (array) $value) . "[[:cntrl:]]*";
           $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_participant.$name", $regexOp, $regexp, 'String');
         }
         else {