Merge branch 'MDL-75713-master' of https://github.com/davewoloszyn/moodle

This commit is contained in:
Víctor Déniz 2022-10-05 22:30:15 +01:00
commit 4fcea7ad56

View File

@ -2445,7 +2445,7 @@ function calendar_get_default_courses($courseid = null, $fields = '*', $canmanag
$courses = get_courses('all', 'c.shortname', implode(',', $prefixedfields));
} else {
$courses = enrol_get_users_courses($userid, true, $fields);
$courses = enrol_get_users_courses($userid, true, $fields, 'c.shortname');
}
if ($courseid && $courseid != SITEID) {