MDL-85120 reportbuilder: allow selection of time in date range filter.

This commit is contained in:
Paul Holden
2025-05-29 15:27:55 +01:00
parent d65e24a62c
commit bc7eee42ed
+2 -2
View File
@@ -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);