From 55d5661bbcb5138d1159abd6d07ddd99d43904ed Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 19 Nov 2009 17:59:55 +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 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.