|
|
@ -65,7 +65,7 @@ class mod_attendance_generator extends testing_module_generator { |
|
|
|
$att = parent::create_instance($record, (array)$options); |
|
|
|
$cm = $DB->get_record('course_modules', array('id' => $att->cmid), '*', MUST_EXIST); |
|
|
|
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); |
|
|
|
unset($att->cmid); |
|
|
|
|
|
|
|
return new mod_attendance_structure($att, $cm, $course); |
|
|
|
} |
|
|
|
} |
|
|
|