MDL-10103 grade_object:insert() now fetches the fresh data from db and updates itself; update_from_db() now uses the same process as new grade_object() for consistency

This commit is contained in:
skodak 2007-06-12 20:16:49 +00:00
parent 7bb11c76d1
commit 9b7e5a3772
2 changed files with 19 additions and 10 deletions

View file

@ -697,7 +697,6 @@ class grade_category extends grade_object {
$grade_item->courseid = $this->courseid;
$grade_item->itemtype = 'category';
$grade_item->insert();
$grade_item->update_from_db();
}
return $grade_item;