Skip to content

Commit

Permalink
Merge pull request #16863 from seamuslee001/dev_core_561_daterange_de…
Browse files Browse the repository at this point in the history
…precation

dev/core#561 Add in deprecation notice on addDateRange funtion
  • Loading branch information
eileenmcnaughton authored Mar 26, 2020
2 parents 133a745 + eb81078 commit 0093854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,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]);
Expand Down

0 comments on commit 0093854

Please sign in to comment.