mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
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:
parent
7bb11c76d1
commit
9b7e5a3772
2 changed files with 19 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue