quiz & qbank MDL-24453 some more return URLs that I missed the first time.

Also, fix a double-escaping bug when cancelling the form.
This commit is contained in:
Tim Hunt
2010-10-18 15:53:54 +00:00
parent fb6dcdab11
commit fde29fa59c
2 changed files with 8 additions and 5 deletions
+2 -3
View File
@@ -206,11 +206,10 @@ if ($mform->is_cancelled()){
if ($inpopup) {
close_window();
} else {
$nexturl = new moodle_url($returnurl);
if (!empty($question->id)) {
$nexturl->param('lastchanged', $question->id);
$returnurl->param('lastchanged', $question->id);
}
redirect($nexturl->out());
redirect($returnurl->out(false));
}
} elseif ($fromform = $mform->get_data()) {
/// If we are saving as a copy, break the connection to the old question.