Permalink
Browse files

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

…OODLE_24_STABLE
  • Loading branch information...
2 parents cf3e5c4 + 2b18a45 commit 4e63dc5e5dc94e095f5911b09e5666af09e3861c @stronk7 stronk7 committed Jan 22, 2013
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 4e63dc5

Please sign in to comment.