MDL-26773 PHP error notice when editing multianswer question
$course was removed from the save question methods in 2.0, but this occurrence was missed. Thanks to Joseph Rezeau for the fix
This commit is contained in:
@@ -166,10 +166,6 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
}
|
||||
|
||||
$question->category = $authorizedquestion->category;
|
||||
$form->course = $course; // To pass the course object to
|
||||
// save_question_options, where it is
|
||||
// needed to call type specific
|
||||
// save_question methods.
|
||||
$form->defaultgrade = $question->defaultgrade;
|
||||
$form->questiontext = $question->questiontext;
|
||||
$form->questiontextformat = 0;
|
||||
|
||||
Reference in New Issue
Block a user