mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-31306 question preview: disable 'Fill correct' for qtypes that can't
This commit is contained in:
parent
1bc47427f0
commit
da22c0127b
4 changed files with 13 additions and 5 deletions
|
@ -211,7 +211,9 @@ $filldisabled = '';
|
|||
if ($quba->get_question_state($slot)->is_finished()) {
|
||||
$finishdisabled = ' disabled="disabled"';
|
||||
$filldisabled = ' disabled="disabled"';
|
||||
} else if (is_null($quba->get_correct_response($slot))) {
|
||||
}
|
||||
// If question type cannot give us a correct response, disable this button.
|
||||
if (is_null($quba->get_correct_response($slot))) {
|
||||
$filldisabled = ' disabled="disabled"';
|
||||
}
|
||||
if (!$previewid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue