-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.1
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-77180-401 -
Moodle sites can have course custom fields and admins can categorize fields and name categories.
The default category names are obtained from the lang pack, but multilang tags for custom category names are dropped by PARAM_NOTAGS in core_customfield_inplace_editable().
Replacing the line:
$newvalue = clean_param($newvalue, PARAM_NOTAGS);
with the line:
$newvalue = clean_param($newvalue, PARAM_TEXT);
will fix the problem.
Reproduction Steps:
- Make sure multilang filter is enabled and a lang pack (say German) is installed.
- Open Course custom fields page by "Site administration" > "Courses" tab > "Course custom fields".
- Click "Add a new category" button.
- Click "Other fields" and type "<span class="multilang" lang="en">Example</span><span class="multilang" lang="de">Beispiel</span>", then Enter.
- You see the category name is "ExampleBeispiel".