]> git.mjollnir.org Git - moodle.git/commitdiff
[BugFix] Multiple essays were not showing for grading: http://moodle.org/mod/forum...
authormichaelpenne <michaelpenne>
Tue, 28 Mar 2006 00:30:24 +0000 (00:30 +0000)
committermichaelpenne <michaelpenne>
Tue, 28 Mar 2006 00:30:24 +0000 (00:30 +0000)
mod/lesson/view.php

index 90a6aa40c5eb84867dc91d126e11fe77faa33bcd..2c975977a837874599a32153b57d43ccc6d74836 100644 (file)
             
             // number of attempts on the lesson
             $attempts = count_records('lesson_grades', 'userid', $id, 'lessonid', $lesson->id);
-            $count = 0;
             
             // go through each essay
             foreach ($studentessays[$id] as $page => $tries) {
+                $count = 0;
+                
                 // go through each essay per page
                 foreach($tries as $try) {
                     if ($count == $attempts) {