mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-10933, only 1 manual grade item can be added
This commit is contained in:
parent
294a176fc7
commit
fc69d5577a
@ -41,7 +41,7 @@ if ($item = get_record('grade_items', 'id', $id, 'courseid', $course->id)) {
|
||||
$decimalpoints = grade_report::get_pref('decimalpoints', $item->id);
|
||||
|
||||
} else {
|
||||
$item = new grade_item(array('courseid'=>$courseid, 'itemtype'=>'manual'));
|
||||
$item = new grade_item(array('courseid'=>$courseid, 'itemtype'=>'manual'), false);
|
||||
// Get Item preferences
|
||||
$item->pref_gradedisplaytype = grade_report::get_pref('gradedisplaytype');
|
||||
$item->pref_decimalpoints = grade_report::get_pref('decimalpoints');
|
||||
|
Loading…
x
Reference in New Issue
Block a user