MDL-22062 Workshop used to set the same idnumber for its grade_items

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.
This commit is contained in:
David Mudrak
2010-06-05 19:53:18 +00:00
parent ae350951c2
commit 23c9aeac40
-2
View File
@@ -353,7 +353,6 @@ 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;
@@ -361,7 +360,6 @@ function workshop_grade_item_update(stdclass $workshop, $submissiongrades=null,
$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;