From: yashodha Date: Tue, 22 Dec 2015 07:14:16 +0000 (+0530) Subject: CRM-17398: Enotice on participant delete X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e6d24997cede53eab2accfe4e261ffd98fb6c85e;p=civicrm-core.git CRM-17398: Enotice on participant delete ---------------------------------------- * CRM-17398: Enotice on participant delete https://issues.civicrm.org/jira/browse/CRM-17398 --- 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);