diff --git a/question/type/calculated/db/upgrade.php b/question/type/calculated/db/upgrade.php index be5186361e4..0605694a279 100644 --- a/question/type/calculated/db/upgrade.php +++ b/question/type/calculated/db/upgrade.php @@ -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); diff --git a/question/type/multichoice/backup/moodle1/lib.php b/question/type/multichoice/backup/moodle1/lib.php index acd79f1972e..b80f29914d0 100644 --- a/question/type/multichoice/backup/moodle1/lib.php +++ b/question/type/multichoice/backup/moodle1/lib.php @@ -82,7 +82,7 @@ class moodle1_qtype_multichoice_handler extends moodle1_qtype_handler { $multichoice['incorrectfeedbackformat'] = FORMAT_HTML; } else { $multichoice['correctfeedbackformat'] = $oldquestiontextformat; - $multichoice['partiallycorrectfeedback'] = $oldquestiontextformat; + $multichoice['partiallycorrectfeedbackformat'] = $oldquestiontextformat; $multichoice['incorrectfeedbackformat'] = $oldquestiontextformat; } diff --git a/question/type/multichoice/db/upgrade.php b/question/type/multichoice/db/upgrade.php index 2345bc8beb5..22dc83a7f7b 100644 --- a/question/type/multichoice/db/upgrade.php +++ b/question/type/multichoice/db/upgrade.php @@ -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);