]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19111 fixed dimming of hidden until items; merged from MOODLE_19_STABLE
authorskodak <skodak>
Thu, 7 May 2009 17:38:40 +0000 (17:38 +0000)
committerskodak <skodak>
Thu, 7 May 2009 17:38:40 +0000 (17:38 +0000)
grade/edit/tree/lib.php

index 79b70380bd9e22fe47486ebae1f88e8ebd7ef690..4f453b527ba1a22805210051bd388cc9ca59a483 100755 (executable)
@@ -154,7 +154,7 @@ class grade_edit_tree {
             $item = $category->get_grade_item();
 
             // Add aggregation coef input if not a course item and if parent category has correct aggregation type
-            $dimmed = ($item->hidden) ? " dimmed " : "";
+            $dimmed = ($item->is_hidden()) ? " dimmed " : "";
 
             // Before we print the category's row, we must find out how many rows will appear below it (for the filler cell's rowspan)
             $aggregation_position = grade_get_setting($COURSE->id, 'aggregationposition', $CFG->grade_aggregationposition);
@@ -293,7 +293,7 @@ class grade_edit_tree {
                 $categoryitemclass = 'categoryitem';
             }
 
-            $dimmed = ($item->hidden) ? " dimmed_text " : "";
+            $dimmed = ($item->is_hidden()) ? " dimmed_text " : "";
             $html .= '<tr class="'.$categoryitemclass.' item'.$dimmed.$rowclasses.'">';
 
             foreach ($this->columns as $column) {