CRM-15965: Allow custom search classes to run their buildTaskList method instead...
authorFrank J. Gómez <frank@ginkgostreet.com>
Thu, 12 Feb 2015 16:07:57 +0000 (11:07 -0500)
committerFrank J. Gómez <frank@ginkgostreet.com>
Thu, 12 Feb 2015 16:07:57 +0000 (11:07 -0500)
CRM/Contact/Form/Search/Custom.php

index eabfe7dce82b105ba68677e7079b69e5f53fefb5..2f4e9103388bfd952905f72e3366c84fd0212b73 100644 (file)
@@ -108,6 +108,13 @@ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search {
     return $this->_formValues;
   }
 
+  function buildTaskList() {
+    if (method_exists($this->_customSearchClass, 'buildTaskList')) {
+      return $this->_customClass->buildTaskList();
+    }
+    return parent::buildTaskList();
+  }
+
   function buildQuickForm() {
     $this->_customClass->buildForm($this);