mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
MDL-24139 fixed regression in prev commit, thanks Eloy
This commit is contained in:
parent
3a905609ae
commit
adb5ad7c93
@ -1449,8 +1449,6 @@ class question_bank_view {
|
||||
question_require_capability_on($questionid, 'edit');
|
||||
if ($DB->record_exists('quiz_question_instances', array('question' => $questionid))) {
|
||||
$DB->set_field('question', 'hidden', 1, array('id' => $questionid));
|
||||
question_require_capability_on($questionid, 'edit');
|
||||
print_error('cannothidequestion', 'question');
|
||||
} else {
|
||||
delete_question($questionid);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user