MDL-67671 backup: Fix modname display on backup form

This commit is contained in:
Mark Johnson 2020-07-09 10:11:17 +01:00
parent 49a9e8b07d
commit e37cdf881e

View File

@ -402,7 +402,8 @@ abstract class base_moodleform extends moodleform {
// Get list of module types on course.
$modinfo = get_fast_modinfo($COURSE);
$modnames = $modinfo->get_used_module_names(true);
$modnames = array_map('strval', $modinfo->get_used_module_names(true));
core_collator::asort($modnames);
$PAGE->requires->yui_module('moodle-backup-backupselectall', 'M.core_backup.backupselectall',
array($modnames));
$PAGE->requires->strings_for_js(array('select', 'all', 'none'), 'moodle');