diff --git a/grade/edit/tree/lib.php b/grade/edit/tree/lib.php index fe90e41ccf5..67b5fd72bdd 100644 --- a/grade/edit/tree/lib.php +++ b/grade/edit/tree/lib.php @@ -427,11 +427,6 @@ class grade_edit_tree { ); $str .= $checkboxlbl . $checkbox . $hiddenlabel . $input; - - if ($item->aggregationcoef > 0) { - $str .= ' ' . html_writer::tag('abbr', get_string('aggregationcoefextrasumabbr', 'grades'), - array('title' => get_string('aggregationcoefextrasum', 'grades'))); - } } return $str; @@ -771,6 +766,11 @@ class grade_edit_tree_column_range extends grade_edit_tree_column { $grademax = format_float($item->grademax, $item->get_decimals()); } + if ($item->aggregationcoef > 0 && $parent_cat->is_extracredit_used()) { + $grademax .= ' ' . html_writer::tag('abbr', get_string('aggregationcoefextrasumabbr', 'grades'), + array('title' => get_string('aggregationcoefextrasum', 'grades'))); + } + $itemcell = parent::get_item_cell($item, $params); $itemcell->text = $grademax; return $itemcell;