Merge branch 'MDL-39740_grade_item_idnumber_fix' of git://github.com/ashleyholman/moodle

This commit is contained in:
Dan Poltawski 2014-04-09 11:12:55 +08:00
commit 020af1058d

View file

@ -437,7 +437,7 @@ class grade_item extends grade_object {
}
if ($this->itemtype == 'mod' and !$this->is_outcome_item()) {
if ($this->itemnumber === 0) {
if ($this->itemnumber == 0) {
// for activity modules, itemnumber 0 is synced with the course_modules
if (!$cm = get_coursemodule_from_instance($this->itemmodule, $this->iteminstance, $this->courseid)) {
return false;