question editing: MDL-20380 Highlight the last edited question when you cancel the form too.

This commit is contained in:
Tim Hunt
2009-11-19 17:59:55 +00:00
parent 08df518104
commit 55d5661bbc
+3 -1
View File
@@ -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.