MDL-31306 question preview: disable 'Fill correct' for qtypes that can't

This commit is contained in:
M Kassaei 2012-01-20 11:59:14 +00:00 committed by Sam Hemelryk
parent 1bc47427f0
commit da22c0127b
4 changed files with 13 additions and 5 deletions

View file

@ -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) {