mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-39740_grade_item_idnumber_fix' of git://github.com/ashleyholman/moodle
This commit is contained in:
commit
020af1058d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue