CONTRIB-490 "Adding support for generation of test calculated question type" replacing old dml function call with new call to method on $DB.
This commit is contained in:
@@ -1101,7 +1101,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
|
||||
$form->questiontext = "What is {a} + {b}?";
|
||||
|
||||
if ($courseid) {
|
||||
$course = get_record('course', 'id', $courseid);
|
||||
$course = $DB->get_record('course', array('id'=> $courseid));
|
||||
}
|
||||
|
||||
$new_question = $this->save_question($question, $form, $course);
|
||||
|
||||
Reference in New Issue
Block a user