Permalink
Browse files

Merging MDL-10680 resolved by thepurplebob from 1.9

  • Loading branch information...
1 parent 071b220 commit 575447dd68bb95346fd6b0569918c94be048be6b pichetp committed Aug 8, 2007
Showing with 7 additions and 0 deletions.
  1. +7 −0 question/format/webct/format.php
@@ -348,6 +348,13 @@ function readquestions ($lines) {
unset($question->answer); //not used in calculated question
break;
case MATCH:
+ // MDL-10680:
+ // switch subquestions and subanswers
+ foreach ($question->subquestions as $id=>$subquestion) {
+ $temp = $question->subquestions[$id];
+ $question->subquestions[$id] = $question->subanswers[$id];
+ $question->subanswers[$id] = $temp;
+ }
if (count($question->answer) < 3){
// add a dummy missing question
$question->name = 'Dummy question added '.$question->name ;

0 comments on commit 575447d

Please sign in to comment.