+ if (CRM_Utils_Array::value('participant_test', $this->_formValues) == '1' || CRM_Utils_Array::value('participant_test', $this->_formValues) == '0') {
+ $seatClause[] = "( participant.is_test = {$this->_formValues['participant_test']} )";
+ }
+ if (!empty($this->_formValues['participant_status_id'])) {
+ $seatClause[] = '( participant.status_id IN ( ' . implode(' , ', (array) $this->_formValues['participant_status_id']) . ' ) )';
+ }
+ if (!empty($this->_formValues['participant_role_id'])) {
+ $seatClause[] = '( participant.role_id IN ( ' . implode(' , ', (array) $this->_formValues['participant_role_id']) . ' ) )';
+ }
+