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:
co-authored by
Hiroto Kagotani
parent
ef93325f27
commit
20280c0405
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user