diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 0f6cf2020ac8..56a724a362cd 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1315,6 +1315,7 @@ public function addDefaultButtons($title, $nextType = 'next', $backType = 'back' * @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]);