Skip to content

Commit

Permalink
MDL-16464 qtype_multichoice: fix missed question -> questionid.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 2, 2013
1 parent 0aa04a7 commit dba40d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/multichoice/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected function initialise_question_instance(question_definition $question, $

public function delete_question($questionid, $contextid) {
global $DB;
$DB->delete_records('qtype_multichoice_options', array('question' => $questionid));
$DB->delete_records('qtype_multichoice_options', array('questionid' => $questionid));

parent::delete_question($questionid, $contextid);
}
Expand Down

0 comments on commit dba40d4

Please sign in to comment.