mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-29528 qtype multichoice and caclulated combined feedback format overwritten during upgrade.
This commit is contained in:
parent
dab8148fde
commit
288633ebbe
@ -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 @@ 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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user