mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-28183 fix for problem during integration
Conflicts: question/type/multianswer/question.php
This commit is contained in:
parent
f9ba4fd83b
commit
d55399a098
@ -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)] = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user