Skip to content

Commit

Permalink
MDL-12497 fixed regressionwhen saving site letters, fixed redirect; m…
Browse files Browse the repository at this point in the history
…erged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Feb 27, 2008
1 parent 2f4b82f commit 7955c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/edit/letter/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
require_login();
admin_externalpage_setup('letters');
$admin = true;
$returnurl = "$CFG->wwwroot/$CFG->admin";
$returnurl = "$CFG->wwwroot/grade/edit/letter/edit.php"; // stay in the same page


} else if ($context->contextlevel == CONTEXT_COURSE) {
Expand Down Expand Up @@ -81,7 +81,7 @@
redirect($returnurl);

} else if ($data = $mform->get_data()) {
if (empty($data->override)) {
if (!$admin and empty($data->override)) {
delete_records('grade_letters', 'contextid', $context->id);
redirect($returnurl);
}
Expand Down

0 comments on commit 7955c18

Please sign in to comment.