Permalink
Browse files

MDL-39487 mod/assign: fixed ID number of grade item changing

  • Loading branch information...
1 parent 43ded67 commit 2fc7799975a513c2e12c4b2455517dd7453c282d Albert Gasset committed Apr 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/locallib.php
View
@@ -3139,7 +3139,7 @@ private function gradebook_item_update($submission=NULL, $grade=NULL) {
return false;
}
$assign = clone $this->get_instance();
- $assign->cmidnumber = $this->get_course_module()->id;
+ $assign->cmidnumber = $this->get_course_module()->idnumber;
return assign_grade_item_update($assign, $gradebookgrade);
}

0 comments on commit 2fc7799

Please sign in to comment.