return to the proper page after editing a question in the question bank.

This commit is contained in:
jamiesensei 2007-05-07 06:35:33 +00:00
parent d340fde6c4
commit 561fe61df3
2 changed files with 5 additions and 3 deletions

View file

@ -51,7 +51,6 @@ if (!$category = get_record('question_categories', 'id', $question->category)) {
}
if (!$returnurl) {
$returnurl = "{$CFG->wwwroot}/question/edit.php?courseid={$category->course}";
$SESSION->fromurl = $returnurl;
}
// Validate the question type.
@ -99,7 +98,7 @@ if ($mform->is_cancelled()){
notify(get_string('changessaved'), '');
close_window(3);
} else {
redirect($SESSION->returnurl);
redirect($returnurl);
}
die;
} else {