From: Frank J. Gómez Date: Sun, 1 Mar 2015 22:06:06 +0000 (-0500) Subject: CRM-15965: Until the search interface is updated, guard calls the new method. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2d42130c441198adc1a7ff9add89aa17d655a18a;p=civicrm-core.git CRM-15965: Until the search interface is updated, guard calls the new method. --- diff --git a/CRM/Contact/Form/Search/Custom.php b/CRM/Contact/Form/Search/Custom.php index 1c5baee64d..0638a9d310 100644 --- a/CRM/Contact/Form/Search/Custom.php +++ b/CRM/Contact/Form/Search/Custom.php @@ -116,7 +116,13 @@ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search { function buildTaskList() { // call the parent method to populate $this->_taskList for the custom search parent::buildTaskList(); - return $this->_customClass->buildTaskList($this); + + // @todo: When CRM_Contact_Form_Search_Interface is updated in 4.6, remove this check + if (is_callable(array($this->_customClass, 'buildTaskList'))) { + return $this->_customClass->buildTaskList($this); + } else { + return $this->_taskList; + } } function buildQuickForm() {