MDL-77015 mod_data: consistent escaping of template field names.

* When creating default templates, avoid escaping the field names
  contained within [[ ]] brackets;
* When managing field, ensure the field names are escaped.
This commit is contained in:
Paul Holden
2024-04-02 10:02:07 +01:00
parent 74d3c96149
commit 7f01b0369a
16 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -993,7 +993,7 @@ class template {
$errors .= $renderer->notification(get_string(
'missingfieldtype',
'data',
(object)['name' => $field->field->name]
(object)['name' => s($field->field->name)]
));
}
} else {