CRM_Core_Form - Remove unused var _dateFields
authorcolemanw <coleman@civicrm.org>
Mon, 28 Aug 2023 21:53:34 +0000 (17:53 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 28 Aug 2023 21:53:34 +0000 (17:53 -0400)
This field was added in 5d86176 for the sake of the convertDateFieldsToMySQL() function which has since been deleted.

CRM/Core/Form.php

index 3e21e9391cc72fb05c8fdcd2133d6589fad890ad..5ff965290976df81c177b050b6c236eff3b66cc5 100644 (file)
@@ -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'];
     }