From: monishdeb Date: Sat, 5 Sep 2015 08:45:01 +0000 (+0530) Subject: = operator fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=03dddab87d244f01b096b70bd785fd663034c524;p=civicrm-core.git = operator fix --- diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index 2752f8d2af..2af7f411d3 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -395,7 +395,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 {