Skip to content

Commit

Permalink
Merge branch 'MDL-81488' of https://github.com/dravek/moodle into main
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Apr 10, 2024
2 parents fa7eece + 45d366d commit ea81c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en/reportbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
$string['filterequalorgreaterthan'] = 'Greater than or equal';
$string['filterequalorlessthan'] = 'Less than or equal';
$string['filterfieldoperator'] = '{$a} operator';
$string['filterfieldto'] = '{$a} to';
$string['filterfieldunit'] = '{$a} unit';
$string['filterfieldvalue'] = '{$a} value';
$string['filtergreaterthan'] = 'Greater than';
Expand Down
3 changes: 2 additions & 1 deletion reportbuilder/classes/local/filters/number.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public function setup_form(\MoodleQuickForm $mform): void {
$mform->hideIf($this->name . '_value1', $this->name . '_operator', 'in',
[self::ANY_VALUE, self::IS_NOT_EMPTY, self::IS_EMPTY]);

$objs['text2'] = $mform->createElement('text', $this->name . '_value2', get_string('torecipient'), ['size' => 3]);
$objs['text2'] = $mform->createElement('text', $this->name . '_value2',
get_string('filterfieldto', 'reportbuilder', $this->get_header()), ['size' => 3]);
$mform->setType($this->name . '_value2', PARAM_INT);
$mform->setDefault($this->name . '_value2', 0);
$mform->hideIf($this->name . '_value2', $this->name . '_operator', 'noteq', self::RANGE);
Expand Down

0 comments on commit ea81c54

Please sign in to comment.