From 7f5cfc1164ec54224dc20686191a64baea455c8e Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 24 Sep 2020 11:28:30 +1200 Subject: [PATCH] Allow multi lang on field names in report. --- classes/form/export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/form/export.php b/classes/form/export.php index f8c2d37..d3f51a0 100644 --- a/classes/form/export.php +++ b/classes/form/export.php @@ -124,7 +124,8 @@ class export extends \moodleform { foreach ($customfields as $field) { if ((is_siteadmin($USER) || $field->visible == PROFILE_VISIBLE_ALL) && in_array($field->shortname, explode(',', $adminsetfields))) { - $ident[] =& $mform->createElement('checkbox', $field->shortname, '', $field->name); + $ident[] =& $mform->createElement('checkbox', $field->shortname, '', + format_string($field->name, true, array('context' => $modcontext))); $mform->setType($field->shortname, PARAM_NOTAGS); $checkedfields['ident['. $field->shortname .']'] = true; }