From e6d24997cede53eab2accfe4e261ffd98fb6c85e Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 22 Dec 2015 12:44:16 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index f2f0d16f1b..f5d3d2bca4 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -379,7 +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); + $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