From 10223da3517fd0c85989ee5b2534f0498a8938e2 Mon Sep 17 00:00:00 2001 From: Mikhail Golenkov Date: Tue, 4 Feb 2020 15:03:30 +1100 Subject: [PATCH] Amend redirection url when outage is saved. --- edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit.php b/edit.php index 4beda3d..5cd25f8 100644 --- a/edit.php +++ b/edit.php @@ -42,7 +42,7 @@ if ($mform->is_cancelled()) { redirect(new moodle_url('/auth/outage/manage.php')); } else if ($outage = $mform->get_data()) { $id = outagedb::save($outage); - redirect($CFG->wwwroot. '/auth/outage/manage.php#auth_outage_id_'.$id); + redirect(new moodle_url('/auth/outage/manage.php')); } $clone = optional_param('clone', 0, PARAM_INT);