Skip to content

Commit

Permalink
Merge branch 'MDL-43946_m25' of https://github.com/merrill-oakland/mo…
Browse files Browse the repository at this point in the history
…odle into MOODLE_25_STABLE
  • Loading branch information
Sam Hemelryk committed Feb 9, 2014
2 parents 4c56e82 + 68f1f6e commit 1397e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/upgradelib.php
Expand Up @@ -2068,7 +2068,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
Expand Down

0 comments on commit 1397e10

Please sign in to comment.