This commit is contained in:
Sam Hemelryk 2013-10-03 08:34:39 +13:00
commit c7387be83b

View File

@ -176,7 +176,7 @@ class qtype_multichoice extends question_type {
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);
}