From 2d42130c441198adc1a7ff9add89aa17d655a18a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Sun, 1 Mar 2015 17:06:06 -0500 Subject: [PATCH] CRM-15965: Until the search interface is updated, guard calls the new method. --- CRM/Contact/Form/Search/Custom.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() { -- 2.25.1