From c3a68f4496f68b9ffbed9220a82032b0a27b2ba3 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 6 Jun 2011 18:13:31 +0100 Subject: [PATCH] MDL-27737 numerical qtype upgrade bug 2.0dev -> 2.0. --- question/type/numerical/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/numerical/db/upgrade.php b/question/type/numerical/db/upgrade.php index 96c8014f7f7..88811681348 100644 --- a/question/type/numerical/db/upgrade.php +++ b/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;