MDL-19111 fixed dimming of hidden until items

This commit is contained in:
skodak
2009-05-07 17:38:10 +00:00
parent 1c077f6ad0
commit 8f0a36a201
+2 -2
View File
@@ -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);
@@ -285,7 +285,7 @@ class grade_edit_tree {
// Determine aggregation coef element
$dimmed = ($item->hidden) ? " dimmed_text " : "";
$dimmed = ($item->is_hidden()) ? " dimmed_text " : "";
$html .= '<tr class="item'.$dimmed.$rowclasses.'">';
foreach ($this->columns as $column) {