Skip to content
Browse files

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

  • Loading branch information...
1 parent 95190fd commit c4d0e4efe38733a298ab1a080adc40625bbec6a6 @albertgasset albertgasset committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/locallib.php
View
2 mod/assign/locallib.php
@@ -3668,7 +3668,7 @@ protected 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 c4d0e4e

Please sign in to comment.
Something went wrong with that request. Please try again.