From eb81078f1e22015bb6ea71393cf26f537ebcf3d1 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 20 Mar 2020 16:20:42 +1100 Subject: [PATCH] dev/core#561 Add in deprecation notice on addDateRange funtion --- CRM/Core/Form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 0f6cf2020a..56a724a362 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1315,6 +1315,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @param bool $displayTime */ public function addDateRange($name, $from = '_from', $to = '_to', $label = 'From:', $dateFormat = 'searchDate', $required = FALSE, $displayTime = FALSE) { + CRM_Core_Error::deprecatedFunctionWarning('Use CRM_Core_Form::addDatePickerRange insted'); if ($displayTime) { $this->addDateTime($name . $from, $label, $required, ['formatType' => $dateFormat]); $this->addDateTime($name . $to, ts('To:'), $required, ['formatType' => $dateFormat]); -- 2.25.1