]> git.mjollnir.org Git - moodle.git/commitdiff
Grade item: MDL-21161 timemodified never gets set on calculated gradebook columns
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 18 Dec 2009 18:19:46 +0000 (18:19 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 18 Dec 2009 18:19:46 +0000 (18:19 +0000)
lib/grade/grade_item.php

index 56cf6bcdba41d12312d2d689c2faec3e33daa89a..a8690f6ae3489f79e9c10957ac353f3580bab8c1 100644 (file)
@@ -1815,6 +1815,7 @@ class grade_item extends grade_object {
 
         // update in db if changed
         if (grade_floats_different($grade->finalgrade, $oldfinalgrade)) {
+            $grade->timemodified = time();
             $grade->update('compute');
         }