Skip to content

Commit

Permalink
MDL-27737 numerical qtype upgrade bug 2.0dev -> 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jun 6, 2011
1 parent 70d2481 commit aadad31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/numerical/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
foreach ($rs as $record) {
if ($CFG->texteditors !== 'textarea' &&
$record->oldquestiontextformat == FORMAT_MOODLE) {
$record->instructions = text_to_html($record->questiontext, false, false, true);
$record->instructions = text_to_html($record->instructions, false, false, true);
$record->instructionsformat = FORMAT_HTML;
} else {
$record->instructionsformat = $record->oldquestiontextformat;
Expand Down

0 comments on commit aadad31

Please sign in to comment.