Permalink
Browse files

Merge branch 'MDL-28512_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
stronk7 committed Jan 22, 2013
2 parents 8f3ae32 + af8ce62 commit 4e3f4bd9be99a28409e863793661aa904d986bb8
Showing with 7 additions and 0 deletions.
  1. +7 −0 question/type/essay/questiontype.php
@@ -80,6 +80,13 @@ protected function initialise_question_instance(question_definition $question, $
$question->graderinfoformat = $questiondata->options->graderinfoformat;
}
+ public function delete_question($questionid, $contextid) {
+ global $DB;
+
+ $DB->delete_records('qtype_essay_options', array('questionid' => $questionid));
+ parent::delete_question($questionid, $contextid);
+ }
+
/**
* @return array the different response formats that the question type supports.
* internal name => human-readable name.

0 comments on commit 4e3f4bd

Please sign in to comment.