Permalink
Browse files

question editing: MDL-20380 Highlight the last edited question when y…

…ou cancel the form too.
  • Loading branch information...
1 parent 08df518 commit 55d5661bbcb5138d1159abd6d07ddd99d43904ed @timhunt timhunt committed Nov 19, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/question.php
@@ -141,7 +141,9 @@
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.

0 comments on commit 55d5661

Please sign in to comment.