Browse Source

Allow multi lang on field names in report.

nwp90-nwp90-allsessionsreport
Dan Marsden 4 years ago
parent
commit
7f5cfc1164
  1. 3
      classes/form/export.php

3
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;
}

Loading…
Cancel
Save