MDL-13850 fix automatic creation of course grade item; merge dfrom MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-08 15:34:39 +00:00
parent b0f44d8dbe
commit 076aeb01a6

View File

@ -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();
}
/**