MDL-28183 fix for problem during integration

Conflicts:
	question/type/multianswer/question.php
This commit is contained in:
Jean-Michel Vedrine 2013-01-08 10:26:55 +01:00 committed by Eloy Lafuente (stronk7)
parent f9ba4fd83b
commit d55399a098

View File

@ -238,8 +238,8 @@ class qtype_multianswer_question extends question_graded_automatically_with_coun
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)] = '';