Skip to content

Commit

Permalink
Merge branch 'MDL-58900-33' of git://github.com/lameze/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_33_STABLE
  • Loading branch information
snake committed Jun 6, 2017
2 parents 3309800 + c779c4f commit 88daff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assign/overrideedit.php
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 88daff0

Please sign in to comment.