mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-13850 fix automatic creation of course grade item; merge dfrom MOODLE_19_STABLE
This commit is contained in:
parent
b0f44d8dbe
commit
076aeb01a6
@ -938,8 +938,7 @@ class grade_item extends grade_object {
|
||||
|
||||
// first get category - it creates the associated grade item
|
||||
$course_category = grade_category::fetch_course_category($courseid);
|
||||
|
||||
return grade_item::fetch(array('courseid'=>$courseid, 'itemtype'=>'course'));
|
||||
return $course_category->get_grade_item();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user