Skip to content

Commit

Permalink
MDL-10933, only 1 manual grade item can be added
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Aug 31, 2007
1 parent 294a176 commit fc69d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/edit/tree/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$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');
Expand Down

0 comments on commit fc69d55

Please sign in to comment.