Skip to content

Commit

Permalink
MDL-58900 mod_assign: fix incorrect overrides ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed May 31, 2017
1 parent 8708ea0 commit f7c9dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assign/overrideedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
unset($fromform->id);
$fromform->id = $DB->insert_record('assign_overrides', $fromform);
if ($groupmode) {
$fromform->sortorder = $fromform->id;
$fromform->sortorder = 1;

$overridecountgroup = $DB->count_records('assign_overrides',
array('userid' => null, 'assignid' => $assigninstance->id));
Expand All @@ -196,7 +196,7 @@
}

$DB->update_record('assign_overrides', $fromform);

reorder_group_overrides($assigninstance->id);
}

// Determine which override created event to fire.
Expand Down

0 comments on commit f7c9dd2

Please sign in to comment.