MDL-25031 fixed question ugprade - credit goes to Mark Nelson

This commit is contained in:
Petr Skoda
2010-11-15 05:53:22 +00:00
parent e47c78f929
commit 785d2cf2bd
+1 -1
View File
@@ -68,7 +68,7 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
$rs = $DB->get_recordset_sql('
SELECT qno.*, q.oldquestiontextformat
FROM {question_numerical_options} qno
JOIN {question} q ON qno = q.id');
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);