Skip to content

Commit

Permalink
question editing: MDL-20380 Highlight the last edited question when y…
Browse files Browse the repository at this point in the history
…ou cancel the form too.
  • Loading branch information
timhunt committed Nov 19, 2009
1 parent 85edde5 commit 7846a62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion question/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,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.
Expand Down

0 comments on commit 7846a62

Please sign in to comment.