From 790b377782296a1e19a7179878475b1261f90619 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 28 Dec 2015 15:37:26 +0530 Subject: [PATCH] CRM-17755: Nesting of operators for event search form ---------------------------------------- * CRM-17755: Nesting of operators for event search form https://issues.civicrm.org/jira/browse/CRM-17755 --- CRM/Event/Form/Search.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/Search.php b/CRM/Event/Form/Search.php index 92b7aea6c2..6fbf40a321 100644 --- a/CRM/Event/Form/Search.php +++ b/CRM/Event/Form/Search.php @@ -423,11 +423,10 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search { elseif (is_numeric($status)) { $statusTypes = (int) $status; } - - $this->_formValues['participant_status_id'] = is_array($statusTypes) ? array('IN' => array_keys($statusTypes)) : $statusTypes; - } - elseif ($statusTypes = CRM_Utils_Array::value('participant_status_id', $this->_formValues)) { - $this->_formValues['participant_status_id'] = is_array($statusTypes) ? array('IN' => $statusTypes) : $statusTypes; + elseif (is_array($status) && !array_key_exists('IN', $status)) { + $statusTypes = array_keys($status); + } + $this->_formValues['participant_status_id'] = is_array($statusTypes) ? array_keys($statusTypes) : $statusTypes; } $role = CRM_Utils_Request::retrieve('role', 'String', -- 2.25.1