From aff142ec76f7740a01d92bb5872966a2f56ccf4a Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 28 Aug 2023 17:53:34 -0400 Subject: [PATCH] CRM_Core_Form - Remove unused var _dateFields This field was added in 5d86176 for the sake of the convertDateFieldsToMySQL() function which has since been deleted. --- CRM/Core/Form.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 3e21e9391c..5ff9652909 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -132,18 +132,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { */ protected $_renderer; - /** - * An array to hold a list of datefields on the form - * so that they can be converted to ISO in a consistent manner - * - * @var array - * - * e.g on a form declare $_dateFields = array( - * 'receive_date' => array('default' => 'now'), - * ); - */ - protected $_dateFields = []; - /** * Cache the smarty template for efficiency reasons * @@ -2467,7 +2455,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @return int * @throws \CRM_Core_Exception */ - public function getRequestedContactID(): ?int { + public function getRequestedContactID(): ?int { if (isset($this->_params) && !empty($this->_params['select_contact_id'])) { return (int) $this->_params['select_contact_id']; } -- 2.25.1