MDL-81488 reportbuilder: Fix incorrect string in report number filter

This commit is contained in:
David Carrillo 2024-04-10 09:23:10 +02:00
parent b621a7e4b3
commit 45d366d463
No known key found for this signature in database
GPG Key ID: F805F8542D4C72CD
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);