Skip to content

Commit

Permalink
MDL-22062 Workshop used to set the same idnumber for its grade_items
Browse files Browse the repository at this point in the history
In fact, course/modedit.php sets the correct value for the grade_item
number 0 and keeps it synced with the idnumber value in course_modules.
  • Loading branch information
mudrd8mz committed Jun 5, 2010
1 parent ae35095 commit 23c9aea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mod/workshop/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,13 @@ function workshop_grade_item_update(stdclass $workshop, $submissiongrades=null,

$item = array();
$item['itemname'] = get_string('gradeitemsubmission', 'workshop', $a);
$item['idnumber'] = $workshop->cmidnumber;
$item['gradetype'] = GRADE_TYPE_VALUE;
$item['grademax'] = $workshop->grade;
$item['grademin'] = 0;
grade_update('mod/workshop', $workshop->course, 'mod', 'workshop', $workshop->id, 0, $submissiongrades , $item);

$item = array();
$item['itemname'] = get_string('gradeitemassessment', 'workshop', $a);
$item['idnumber'] = $workshop->cmidnumber;
$item['gradetype'] = GRADE_TYPE_VALUE;
$item['grademax'] = $workshop->gradinggrade;
$item['grademin'] = 0;
Expand Down

0 comments on commit 23c9aea

Please sign in to comment.