class CRM_Event_Form_Search extends CRM_Core_Form_Search {
/**
- * the params that are sent to the query
+ * The params that are sent to the query
*
* @var array
* @access protected
protected $_queryParams;
/**
- * are we restricting ourselves to a single contact
+ * Are we restricting ourselves to a single contact
*
* @access protected
* @var boolean
protected $_single = FALSE;
/**
- * are we restricting ourselves to a single contact
+ * Are we restricting ourselves to a single contact
*
* @access protected
* @var boolean
protected $_limit = NULL;
/**
- * prefix for the controller
+ * Prefix for the controller
*
*/
protected $_prefix = "event_";
protected $_defaults;
/**
- * the saved search ID retrieved from the GET vars
+ * The saved search ID retrieved from the GET vars
*
* @var int
* @access protected
protected $_ssID;
/**
- * processing needed for buildForm and later
+ * Processing needed for buildForm and later
*
* @return void
* @access public
}
/**
- * Build the form
+ * Build the form object
*
* @access public
*
$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);