X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FContribute%2FForm%2FSearch.php;h=1826982d18cc311edd221d849f9e70f6c90f343d;hb=a3d827a7d20ed4f66a127ef766c273648c383e16;hp=42932e5ebf4b96cf6dceb4fd294131ca7ce53a1c;hpb=4596f0910a3e001ab18d43df690e22fe5746bbbe;p=civicrm-core.git diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index 42932e5ebf..1826982d18 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2016 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2015 + * @copyright CiviCRM LLC (c) 2004-2016 */ /** @@ -80,7 +80,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { * driven by the wizard framework */ - $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject); + $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean'); $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE); $this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this); $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'search'); @@ -281,17 +281,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { 'invoice_id', 'payment_instrument_id', ); - foreach ($specialParams as $element) { - $value = CRM_Utils_Array::value($element, $this->_formValues); - if ($value) { - if (is_array($value)) { - $this->_formValues[$element] = array('IN' => $value); - } - else { - $this->_formValues[$element] = array('LIKE' => "%$value%"); - } - } - } + CRM_Contact_BAO_Query::processSpecialFormValue($this->_formValues, $specialParams); $tags = CRM_Utils_Array::value('contact_tags', $this->_formValues); if ($tags && !is_array($tags)) {