Permalink
Browse files

MDL-28183 fix for problem during integration

Conflicts:
	question/type/multianswer/question.php
  • Loading branch information...
Jean-Michel Vedrine authored and stronk7 committed Jan 8, 2013
1 parent 65a550c commit 0a32dca4bba5e0712b95c7c64c4dea0b45bdb439
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 0a32dca

Please sign in to comment.