diff --git a/question/question.php b/question/question.php index 974c58cb0c8..c67c6fb0050 100644 --- a/question/question.php +++ b/question/question.php @@ -141,7 +141,9 @@ if ($mform->is_cancelled()){ if ($inpopup) { close_window(); } else { - redirect($returnurl); + $nexturl = new moodle_url($returnurl); + $nexturl->param('lastchanged', $question->id); + redirect($nexturl->out()); } } elseif ($fromform = $mform->get_data()) { /// If we are saving as a copy, break the connection to the old question.