From 7392c85d3c85ee104e52bb3e81c77002f3cc127b Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 23 Dec 2015 09:24:13 +0530 Subject: [PATCH] CRM-17398: Enotice on participant delete ---------------------------------------- * CRM-17398: Enotice on participant delete https://issues.civicrm.org/jira/browse/CRM-17398 --- CRM/Event/BAO/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index f5d3d2bca4..aea26f8bed 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -379,10 +379,10 @@ class CRM_Event_BAO_Query { $dataType = !empty($fields[$qillName]['type']) ? CRM_Utils_Type::typeToString($fields[$qillName]['type']) : 'String'; $tableName = empty($tableName) ? 'civicrm_participant' : $tableName; - if (is_array($value) && in_array(key($value), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) { - $op = key($value); + if (is_array($value) && in_array(key($value), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) { + $op = key($value); $value = $value[$op]; - } + } $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("$tableName.$name", $op, $value, $dataType); list($op, $value) = CRM_Contact_BAO_Query::buildQillForFieldValue('CRM_Event_DAO_Participant', $name, $value, $op); -- 2.25.1