Permalink
Browse files

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
  • Loading branch information...
1 parent 48fe5c6 commit 74a43c74873bc4e09d5d9adbf9b7a40d5216a117 @timhunt timhunt committed Mar 11, 2011
Showing with 0 additions and 4 deletions.
  1. +0 −4 question/type/multianswer/questiontype.php
@@ -166,10 +166,6 @@ function save_question($authorizedquestion, $form) {
}
$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;

0 comments on commit 74a43c7

Please sign in to comment.