From 50bbe281a22c031159589fef93cf399b92decca9 Mon Sep 17 00:00:00 2001 From: Barry Oosthuizen Date: Wed, 27 May 2015 15:58:15 +0100 Subject: [PATCH] mod_attendance: Fix #92 Set page URL --- attendance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attendance.php b/attendance.php index 539354c..f08b89d 100644 --- a/attendance.php +++ b/attendance.php @@ -51,6 +51,8 @@ require_sesskey(); $mform = new mod_attendance_student_attendance_form(null, array('course' => $course, 'cm' => $cm, 'modcontext' => $PAGE->context, 'session' => $attforsession, 'attendance' => $att)); +$PAGE->set_url($att->url_sessions()); + if ($mform->is_cancelled()) { // The user cancelled the form, so redirect them to the view page. $url = new moodle_url('/mod/attendance/view.php', array('id' => $cm->id)); @@ -72,7 +74,6 @@ if ($mform->is_cancelled()) { $mform->set_data($fromform); } -$PAGE->set_url($att->url_sessions()); $PAGE->set_title($course->shortname. ": ".$att->name); $PAGE->set_heading($course->fullname); $PAGE->set_cacheable(true);