From: Tim Hunt Date: Thu, 19 Nov 2009 17:59:54 +0000 (+0000) Subject: question editing: MDL-20380 Highlight the last edited question when you cancel the... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7846a624d566660e9a35e719449b3a357ac05edc;p=moodle.git question editing: MDL-20380 Highlight the last edited question when you cancel the form too. --- 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.