X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FSearch.php;h=212bccfe397b1cbb5f5f623ec49b5b80ffb9baaf;hb=76f1a3f2a53b1a3a03df8cf3ff33a1a32c84cc6b;hp=5a8a86f08f0e273868ba12d1d8e39b903a3df0ad;hpb=fdfd59ccd77f9b06547204a505b67e35bf6596d7;p=civicrm-core.git diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index 5a8a86f08f..212bccfe39 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -1,7 +1,7 @@ set('searchFormName', 'Search'); @@ -165,7 +161,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { $this->assign('contributionSummary', $this->get('summary')); } - function setDefaultValues() { + public function setDefaultValues() { if (empty($this->_defaults ['contribution_status'])) { $this->_defaults['contribution_status'][1] = 1; @@ -174,13 +170,12 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { } /** - * Build the form + * Build the form object * - * @access public * * @return void */ - function buildQuickForm() { + public function buildQuickForm() { parent::buildQuickForm(); // text for sort_name $this->addElement('text', @@ -245,9 +240,8 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { * @param * * @return void - * @access public */ - function postProcess() { + public function postProcess() { if ($this->_done) { return; } @@ -261,7 +255,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { $this->fixFormValues(); // We don't show test records in summaries or dashboards - if (empty($this->_formValues['contribution_test']) && $this->_force) { + if (empty($this->_formValues['contribution_test']) && $this->_force && !empty($this->_context) && $this->_context == 'dashboard') { $this->_formValues["contribution_test"] = 0; } @@ -374,7 +368,7 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { $controller->run(); } - function fixFormValues() { + public function fixFormValues() { // if this search has been forced // then see if there are any get values, and if so over-ride the post values // note that this means that GET over-rides POST :) @@ -460,10 +454,8 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { * Return a descriptive name for the page, used in wizard header * * @return string - * @access public */ public function getTitle() { return ts('Find Contributions'); } } -