question editing: MDL-20380 Highlight the last edited question when you cancel the form too.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user