Unverified Commit 00938540 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub

Merge pull request #16863 from seamuslee001/dev_core_561_daterange_deprecation

#561 Add in deprecation notice on addDateRange funtion
parents 133a745e eb81078f
......@@ -1317,6 +1317,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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment