X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FSearch.php;h=64a36d293bcaa429d4f22b90775f52698653ab1a;hb=8381af809c027065ceb28f18b5530ffb3a51ada3;hp=78ba89211414f5c8c00276fdd38fe296c0ecde49;hpb=e156d1cff2ea15c63070cd9b299e5dcde1cafe36;p=civicrm-core.git diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index 78ba892114..64a36d293b 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -1,7 +1,7 @@ _defaults - )) { + if (empty($this->_defaults +['contribution_status'])) { $this->_defaults['contribution_status'][1] = 1; } return $this->_defaults; @@ -371,6 +370,15 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form { } $config = CRM_Core_Config::singleton(); + // CRM-13848 + $financialType = CRM_Utils_Array::value('financial_type_id', $this->_formValues); + if ($financialType && is_array($financialType)) { + unset($this->_formValues['financial_type_id']); + foreach($financialType as $notImportant => $typeID) { + $this->_formValues['financial_type_id'][$typeID] = 1; + } + } + $tags = CRM_Utils_Array::value('contact_tags', $this->_formValues); if ($tags && !is_array($tags)) { unset($this->_formValues['contact_tags']); @@ -380,7 +388,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form { if ($tags && is_array($tags)) { unset($this->_formValues['contact_tags']); foreach($tags as $notImportant => $tagID) { - $this->_formValues['contact_tags'][$tagID] = 1; + $this->_formValues['contact_tags'][$tagID] = 1; } } @@ -395,7 +403,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form { if ($group && is_array($group)) { unset($this->_formValues['group']); foreach($group as $notImportant => $groupID) { - $this->_formValues['group'][$groupID] = 1; + $this->_formValues['group'][$groupID] = 1; } }