mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
return to the proper page after editing a question in the question bank.
This commit is contained in:
parent
d340fde6c4
commit
561fe61df3
2 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue