Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merging MDL-10680 resolved by thepurplebob from 1.9

  • Loading branch information...
commit 64aa3333457d1021cb185121e6edc56e43109bf9 1 parent ea41587
pichetp authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 question/format/webct/format.php
View
7 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 ;
Please sign in to comment.
Something went wrong with that request. Please try again.