As previously commented this array is never used.
authoreileen <emcnaughton@wikimedia.org>
Sun, 17 Feb 2019 05:18:33 +0000 (18:18 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 17 Feb 2019 05:20:45 +0000 (18:20 +1300)
I did a codebase grep on ->defaults & am pretty confident here....

CRM/Activity/Form/Search.php
CRM/Case/Form/Search.php
CRM/Contribute/Form/Search.php
CRM/Event/Form/Search.php
CRM/Grant/Form/Search.php
CRM/Member/Form/Search.php
CRM/Pledge/Form/Search.php

index f59e18c13b8de2ac1f9bab46a373f015d83492b5..714a68eed0c0d59d20ebc98d97120ca4152a5f48 100644 (file)
@@ -87,7 +87,6 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();
 
index df38d23fcf0cc00521e119b23098d3ac680d9202..14ca731cc0ff5360c4756b6ec88f3792dae99a13 100644 (file)
@@ -87,7 +87,6 @@ class CRM_Case_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();
     $this->loadFormValues();
index 9e55c4839a4955d95bdbe6e58255eec25ff236bd..f00ec966214bdc71435bfd192979bd4950aeba14 100644 (file)
@@ -80,8 +80,6 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    // @todo - is this an error - $this->_defaults is used.
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();
 
index 5b28568a91add3102fa86094eb24e0317c58e13f..0f13d9eb8d8b415dab9fa0e1e92b03d6d2bb26f7 100644 (file)
@@ -88,7 +88,6 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();
     $this->loadFormValues();
index 2f52f3e3b6f9e584c3ea02d3d8bfdf9f49cbe218..5981f0d2134f380c3db1d8b7593117d5be5815be 100644 (file)
@@ -89,7 +89,6 @@ class CRM_Grant_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();
     $this->loadFormValues();
index ed2894040ad8de5fd7b18851289ae44475594318..3f98247a5c8e4bfb0fd77d81f28ab49b4fd978b6 100644 (file)
@@ -82,8 +82,6 @@ class CRM_Member_Form_Search extends CRM_Core_Form_Search {
 
     $this->_done = FALSE;
 
-    $this->defaults = array();
-
     $this->loadStandardSearchOptionsFromUrl();
 
     // get user submitted values
index 33291408d4bf0ede5157ccfecaa1b4dc9800d4b1..3d00901f122c7d9849c69975f078461fb06f56a6 100644 (file)
@@ -71,7 +71,6 @@ class CRM_Pledge_Form_Search extends CRM_Core_Form_Search {
     $this->_actionButtonName = $this->getButtonName('next', 'action');
 
     $this->_done = FALSE;
-    $this->defaults = array();
 
     $this->loadStandardSearchOptionsFromUrl();