question editing MDL-23758 notice on clicking cancel.

This commit is contained in:
Tim Hunt 2010-08-11 16:37:11 +00:00
parent 690510bd3d
commit e934fa008b

View File

@ -202,7 +202,9 @@ if ($mform->is_cancelled()){
close_window();
} else {
$nexturl = new moodle_url($returnurl);
$nexturl->param('lastchanged', $question->id);
if (!empty($question->id)) {
$nexturl->param('lastchanged', $question->id);
}
redirect($nexturl->out());
}
} elseif ($fromform = $mform->get_data()) {