mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-43946' of https://github.com/merrill-oakland/moodle
This commit is contained in:
commit
065bc30c8d
@ -2069,7 +2069,7 @@ function upgrade_grade_item_fix_sortorder() {
|
||||
|
||||
$transaction = $DB->start_delegated_transaction();
|
||||
|
||||
$sql = "SELECT g1.id, g1.courseid, g1.sortorder
|
||||
$sql = "SELECT DISTINCT g1.id, g1.courseid, g1.sortorder
|
||||
FROM {grade_items} g1
|
||||
JOIN {grade_items} g2 ON g1.courseid = g2.courseid
|
||||
WHERE g1.sortorder = g2.sortorder AND g1.id != g2.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user