From 7846a624d566660e9a35e719449b3a357ac05edc Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 19 Nov 2009 17:59:54 +0000 Subject: [PATCH] question editing: MDL-20380 Highlight the last edited question when you cancel the form too. --- question/question.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/question/question.php b/question/question.php index e5bf9225a2..f430a3325f 100644 --- a/question/question.php +++ b/question/question.php @@ -185,7 +185,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. -- 2.39.5