MDL-28183 fix for problem during integration
Conflicts: question/type/multianswer/question.php
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
65a550c484
commit
0a32dca4bb
@@ -238,8 +238,8 @@ class qtype_multianswer_question extends question_graded_automatically {
|
||||
list($subfraction, $newstate) = $subq->grade_response($subresp);
|
||||
if ($newstate != question_state::$gradedright) {
|
||||
foreach ($subresp as $ind => $resp) {
|
||||
if (($subq->layout == qtype_multichoice_base::LAYOUT_VERTICAL)
|
||||
|| ($subq->layout == qtype_multichoice_base::LAYOUT_HORIZONTAL)) {
|
||||
if ($subq->qtype == 'multichoice' && ($subq->layout == qtype_multichoice_base::LAYOUT_VERTICAL
|
||||
|| $subq->layout == qtype_multichoice_base::LAYOUT_HORIZONTAL)) {
|
||||
$response[$substep->add_prefix($ind)] = '-1';
|
||||
} else {
|
||||
$response[$substep->add_prefix($ind)] = '';
|
||||
|
||||
Reference in New Issue
Block a user