protected $_modeValue;
+ /**
+ * Declare entity reference fields as they will need to be converted to using 'IN'.
+ *
+ * @var array
+ */
+ protected $entityReferenceFields = array('membership_type_id');
+
/**
* Name of the selector to use.
*/
$this->_formValues = $this->controller->exportValues($this->_name);
$this->normalizeFormValues();
- $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues);
+ $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
$this->_returnProperties = &$this->returnProperties();
// also get the uf group id directly from the post value
}
else {
$this->_formValues = $this->get('formValues');
- $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues);
+ $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
$this->_returnProperties = &$this->returnProperties();
if (!empty($this->_ufGroupID)) {
$this->set('id', $this->_ufGroupID);
CRM_Core_BAO_CustomValue::fixCustomFieldValue($this->_formValues);
- $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues);
+ $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields);
$this->_returnProperties = &$this->returnProperties();
parent::postProcess();
}
'contribution_status',
'contribution_status_id',
'contribution_source',
- 'membership_type_id',
'membership_status_id',
'participant_status_id',
'contribution_trxn_id',