Skip to content

Commit

Permalink
dev/core#561 Add in deprecation notice on addDateRange funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Mar 20, 2020
1 parent 1bb6e83 commit eb81078
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 @@ -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]);
Expand Down

0 comments on commit eb81078

Please sign in to comment.