Merge branch 'MDL-29528' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-09-26 21:43:57 +02:00
commit 789e95ddde
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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);