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',