MDL-77180 customfield: allow entry of formatted category names.

Change the param type of the category name when editing to allow
for entry of multilang tags, the formatting of which is already
supported when returning category name.

Co-authored-by: Hiroto Kagotani <[email protected]>
This commit is contained in:
Paul Holden
2023-07-07 14:59:44 +01:00
co-authored by Hiroto Kagotani
parent ef93325f27
commit 20280c0405
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -638,7 +638,7 @@ abstract class handler {
foreach ($fieldswithdata as $data) {
$categoryid = $data->get_field()->get_category()->get('id');
if ($categoryid != $lastcategoryid) {
$categoryname = format_string($data->get_field()->get_category()->get('name'));
$categoryname = $data->get_field()->get_category()->get_formatted_name();
// Load category header lang string if specified.
if (!empty($headerlangidentifier)) {