Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-7804 - Essay questions do not backup properly.

  • Loading branch information...
commit 0bf87d3181e4e9ef4594c1a8a601824b365fe485 1 parent 5b77a01
tjhunt authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 question/type/essay/questiontype.php
15 question/type/essay/questiontype.php
View
@@ -104,6 +104,21 @@ function grade_responses(&$question, &$state, $cmoptions) {
return true;
}
+
+ /**
+ * Backup the extra information specific to an essay question - over and above
+ * what is in the mdl_question table.
+ *
+ * @param file $bf The backup file to write to.
+ * @param object $preferences the blackup options controlling this backup.
+ * @param $questionid the id of the question being backed up.
+ * @param $level indent level in the backup file - so it can be formatted nicely.
+ */
+ function backup($bf, $preferences, $questionid, $level = 6) {
+ return question_backup_answers($bf, $preferences, $questionid, $level);
+ }
+
+ // Restore method not needed.
}
//// END OF CLASS ////
Please sign in to comment.
Something went wrong with that request. Please try again.