mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-47012-m' of git://github.com/micaherne/moodle
This commit is contained in:
commit
0e88fe0227
1 changed files with 1 additions and 1 deletions
|
@ -3606,7 +3606,7 @@ function get_default_enrol_roles(context $context, $addroleid = null) {
|
||||||
LEFT JOIN {role_context_levels} rcl ON (rcl.roleid = r.id AND rcl.contextlevel = :contextlevel)
|
LEFT JOIN {role_context_levels} rcl ON (rcl.roleid = r.id AND rcl.contextlevel = :contextlevel)
|
||||||
LEFT JOIN {role_names} rn ON (rn.contextid = :coursecontext AND rn.roleid = r.id)
|
LEFT JOIN {role_names} rn ON (rn.contextid = :coursecontext AND rn.roleid = r.id)
|
||||||
WHERE rcl.id IS NOT NULL $addrole
|
WHERE rcl.id IS NOT NULL $addrole
|
||||||
ORDER BY sortorder DESC";
|
ORDER BY r.sortorder";
|
||||||
|
|
||||||
$roles = $DB->get_records_sql($sql, $params);
|
$roles = $DB->get_records_sql($sql, $params);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue