Index: mod/quiz/lib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/mod/quiz/lib.php,v
retrieving revision 1.282.2.19
diff -w -r1.282.2.19 lib.php
289c289
<             quiz_grade_item_update($quiz, $grades);
---
>             quiz_grade_item_update($quiz, $grades, true);
295c295
<             quiz_grade_item_update($quiz, $grade);
---
>             quiz_grade_item_update($quiz, $grade, true);
298c298
<             quiz_grade_item_update($quiz);
---
>             quiz_grade_item_update($quiz, null, true);
319a320
>  * @note MDL-18301 This is called each time the created grade item is changed in the gradebook!!
322a324
>  * @param boolean $updating We don't want to override grade item settings that have been set in the gradebook (like hidden) if only updating.
325c327
< function quiz_grade_item_update($quiz, $grades=NULL) {
---
> function quiz_grade_item_update($quiz, $grades=NULL, $updating=false) {
336a339
>     if (!$updating) {
368a372
>     }
Index: lib/gradelib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/gradelib.php,v
retrieving revision 1.120.2.27
diff -w -r1.120.2.27 gradelib.php
1136c1136
<         $updateitemfunc($modinstance);
---
>         $updateitemfunc($modinstance, null, true);
