Event api break fixes and cleanup
[civicrm-core.git] / CRM / Event / Form / Search.php
index 12baa8350c1f1574ecb1886b64ff5c72d74b4520..147b093206c5a7ec8695f208f3851af133dd48e8 100644 (file)
@@ -268,6 +268,12 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search {
 
     if (!empty($_POST)) {
       $this->_formValues = $this->controller->exportValues($this->_name);
+      foreach (array('participant_status_id', 'participant_role_id') as $element) {
+        $value = CRM_Utils_Array::value($element, $this->_formValues);
+        if ($value && is_array($value)) {
+          $this->_formValues[$element] = array('IN' => $value);
+        }
+      }
     }
 
     if (empty($this->_formValues)) {