Merge branch 'MDL-85120' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -158,13 +158,13 @@ class date extends base {
|
||||
->setHiddenLabel(true);
|
||||
|
||||
// Date selectors for range operator.
|
||||
$mform->addElement('date_selector', "{$this->name}_from",
|
||||
$mform->addElement('date_time_selector', "{$this->name}_from",
|
||||
get_string('filterfieldfrom', 'core_reportbuilder', $this->get_header()), ['optional' => true]);
|
||||
$mform->setType("{$this->name}_from", PARAM_INT);
|
||||
$mform->setDefault("{$this->name}_from", 0);
|
||||
$mform->hideIf("{$this->name}_from", "{$this->name}_operator", 'neq', self::DATE_RANGE);
|
||||
|
||||
$mform->addElement('date_selector', "{$this->name}_to",
|
||||
$mform->addElement('date_time_selector', "{$this->name}_to",
|
||||
get_string('filterfieldto', 'core_reportbuilder', $this->get_header()), ['optional' => true]);
|
||||
$mform->setType("{$this->name}_to", PARAM_INT);
|
||||
$mform->setDefault("{$this->name}_to", 0);
|
||||
|
||||
Reference in New Issue
Block a user