Permalink
Browse files

MDL-29528 qtype multichoice and caclulated combined feedback format o…

…verwritten during upgrade.
  • Loading branch information...
1 parent 136fa79 commit f8431a1933d634d055a8b8e837b98bc11a826716 @timhunt timhunt committed Sep 26, 2011
@@ -197,7 +197,7 @@ function xmldb_qtype_calculated_upgrade($oldversion) {
$record->incorrectfeedbackformat = FORMAT_HTML;
} else {
$record->correctfeedbackformat = $record->oldquestiontextformat;
- $record->partiallycorrectfeedback = $record->oldquestiontextformat;
+ $record->partiallycorrectfeedbackformat = $record->oldquestiontextformat;
$record->incorrectfeedbackformat = $record->oldquestiontextformat;
}
$DB->update_record('question_calculated_options', $record);
@@ -82,7 +82,7 @@ protected function write_multichoice(array $multichoices, $oldquestiontextformat
$multichoice['incorrectfeedbackformat'] = FORMAT_HTML;
} else {
$multichoice['correctfeedbackformat'] = $oldquestiontextformat;
- $multichoice['partiallycorrectfeedback'] = $oldquestiontextformat;
+ $multichoice['partiallycorrectfeedbackformat'] = $oldquestiontextformat;
$multichoice['incorrectfeedbackformat'] = $oldquestiontextformat;
}
@@ -118,7 +118,7 @@ function xmldb_qtype_multichoice_upgrade($oldversion) {
$record->incorrectfeedbackformat = FORMAT_HTML;
} else {
$record->correctfeedbackformat = $record->oldquestiontextformat;
- $record->partiallycorrectfeedback = $record->oldquestiontextformat;
+ $record->partiallycorrectfeedbackformat = $record->oldquestiontextformat;
$record->incorrectfeedbackformat = $record->oldquestiontextformat;
}
$DB->update_record('question_multichoice', $record);

0 comments on commit f8431a1

Please sign in to comment.