Merge branch 'MDL-81488' of https://github.com/dravek/moodle into main

This commit is contained in:
Paul Holden 2024-04-10 13:57:09 +01:00
commit ea81c5457d
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 3 additions and 1 deletions

View File

@ -144,6 +144,7 @@ $string['filterendswith'] = 'Ends with';
$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';

View File

@ -96,7 +96,8 @@ class number extends base {
$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);