Permalink
Browse files

MDL-38981 Wrong responsetemplateformat restoring 1.9 essay questions

During restore of 1.9 backups, missing responsetemplateformat and
graderinfoformat values should be set to FORMAT_HTML.
  • Loading branch information...
1 parent 422f68f commit 552e36a6a37278efd0cfc06c2ab454403aa0580a Jean-Michel Vedrine committed Apr 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/essay/backup/moodle1/lib.php
@@ -47,9 +47,9 @@ public function process_question(array $data, array $raw) {
'responsefieldlines' => 15,
'attachments' => 0,
'graderinfo' => '',
- 'graderinfoformat' => FORMAT_MOODLE,
+ 'graderinfoformat' => FORMAT_HTML,
'responsetemplate' => '',
- 'responsetemplateformat' => FORMAT_MOODLE
+ 'responsetemplateformat' => FORMAT_HTML
), array('/essay/id'));
}
}

0 comments on commit 552e36a

Please sign in to comment.