Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
commit 4e3f4bd9be99a28409e863793661aa904d986bb8 2 parents 8f3ae32 + af8ce62
@stronk7 stronk7 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 question/type/essay/questiontype.php
View
7 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.
Please sign in to comment.
Something went wrong with that request. Please try again.