From d7ea25cdc18285725d68244428c76f43ed65b0ff Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 4 Mar 2019 14:54:29 +1300 Subject: [PATCH] Fix related search classes to have the same signature --- CRM/Contact/Form/Search/Basic.php | 2 +- CRM/Pledge/Form/Search.php | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/CRM/Contact/Form/Search/Basic.php b/CRM/Contact/Form/Search/Basic.php index 4aa415d447..c68343686f 100644 --- a/CRM/Contact/Form/Search/Basic.php +++ b/CRM/Contact/Form/Search/Basic.php @@ -200,7 +200,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search { * * @return array|bool */ - public static function formRule($fields) { + public static function formRule($fields, $files, $form) { // check actionName and if next, then do not repeat a search, since we are going to the next page if (array_key_exists('_qf_Search_next', $fields)) { if (empty($fields['task'])) { diff --git a/CRM/Pledge/Form/Search.php b/CRM/Pledge/Form/Search.php index 3d00901f12..0073fabcf5 100644 --- a/CRM/Pledge/Form/Search.php +++ b/CRM/Pledge/Form/Search.php @@ -313,24 +313,6 @@ class CRM_Pledge_Form_Search extends CRM_Core_Form_Search { $this->addFormRule(array('CRM_Pledge_Form_Search', 'formRule')); } - /** - * Global validation rules for the form. - * - * @param array $fields - * Posted values of the form. - * - * @return array|bool - */ - public static function formRule($fields) { - $errors = array(); - - if (!empty($errors)) { - return $errors; - } - - return TRUE; - } - /** * Set the default form values. * -- 2.25.1