X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FSearch.php;h=f69f4d63b91df1c3656bc90f03290f87fc6d0cbb;hb=7175594fd1595f53c9c1a4b1709c62d54a94c128;hp=1e3aafd0ad37c7a4c835072d0d854dc2c6f57c88;hpb=68acd6ae8e764d8e713829675cfadfdefff770e8;p=civicrm-core.git diff --git a/CRM/Event/Form/Search.php b/CRM/Event/Form/Search.php index 1e3aafd0ad..f69f4d63b9 100644 --- a/CRM/Event/Form/Search.php +++ b/CRM/Event/Form/Search.php @@ -212,6 +212,13 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search { $roles = array_keys($this->_formValues['participant_role_id']); $seatClause[] = '( participant.role_id IN ( ' . implode(' , ', $roles) . ' ) )'; } + // CRM-15379 + if (!empty($this->_formValues['participant_fee_id'])) { + $participant_fee_id = $this->_formValues['participant_fee_id']; + $feeLabel = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceFieldValue', $participant_fee_id, 'label'); + $feeLabel = CRM_Core_DAO::escapeString(trim($feeLabel)); + $seatClause[] = "( participant.fee_level LIKE '%$feeLabel%' )"; + } $clause = NULL; if (!empty($seatClause)) { $clause = implode(' AND ', $seatClause);