mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-75845' of https://github.com/paulholden/moodle
This commit is contained in:
commit
1fddc9c221
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class date extends base {
|
||||||
$elements[] = $mform->createElement('text', "{$this->name}_value", $valuelabel, ['size' => 3]);
|
$elements[] = $mform->createElement('text', "{$this->name}_value", $valuelabel, ['size' => 3]);
|
||||||
$mform->setType("{$this->name}_value", PARAM_INT);
|
$mform->setType("{$this->name}_value", PARAM_INT);
|
||||||
$mform->setDefault("{$this->name}_value", 1);
|
$mform->setDefault("{$this->name}_value", 1);
|
||||||
$mform->hideIf("{$this->name}_value", "{$this->name}_operator", 'in', $typesnounit + [self::DATE_CURRENT]);
|
$mform->hideIf("{$this->name}_value", "{$this->name}_operator", 'in', array_merge($typesnounit, [self::DATE_CURRENT]));
|
||||||
|
|
||||||
// Unit selector for last and next operators.
|
// Unit selector for last and next operators.
|
||||||
$unitlabel = get_string('filterdurationunit', 'core_reportbuilder', $this->get_header());
|
$unitlabel = get_string('filterdurationunit', 'core_reportbuilder', $this->get_header());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue