Skip to content
Browse files

MDL-28183 fix for problem during integration

Conflicts:
	question/type/multianswer/question.php
  • Loading branch information...
1 parent f9ba4fd commit d55399a098cf289fe0082811019acb24ce3cafd1 Jean-Michel Vedrine committed with stronk7
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/multianswer/question.php
View
4 question/type/multianswer/question.php
@@ -238,8 +238,8 @@ public function clear_wrong_from_response(array $response) {
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)] = '';

0 comments on commit d55399a

Please sign in to comment.
Something went wrong with that request. Please try again.