This commit is contained in:
Huong Nguyen
2025-06-19 11:29:35 +07:00
+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);