Permalink
Browse files

MDL-27737 numerical qtype upgrade bug 2.0dev -> 2.0.

  • Loading branch information...
1 parent dba2410 commit c3a68f4496f68b9ffbed9220a82032b0a27b2ba3 @timhunt timhunt committed Jun 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/numerical/db/upgrade.php
@@ -71,7 +71,7 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
JOIN {question} q ON qno.question = q.id');
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;

0 comments on commit c3a68f4

Please sign in to comment.