]> git.mjollnir.org Git - moodle.git/commitdiff
question editing: MDL-20380 Highlight the last edited question when you cancel the...
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 19 Nov 2009 17:59:54 +0000 (17:59 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 19 Nov 2009 17:59:54 +0000 (17:59 +0000)
question/question.php

index e5bf9225a206883c940ebdeda6ed73b07c2a0690..f430a3325f13a4fc07091bb81f788fec0d1b0e88 100644 (file)
@@ -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.