Permalink
Browse files

MDL-29327 core_grade: removing some code that is messing up the categ…

…ories and items screen when no grade categories are used
  • Loading branch information...
1 parent 10ad21d commit d674a0e16fbb349228a63eff0204b97a647b9405 @andyjdavis andyjdavis committed Dec 21, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 grade/edit/tree/lib.php
@@ -273,12 +273,6 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
$root = true;
}
- $row_count_offset = 0;
-
- if (empty($category_total_item) && !$this->moving) {
- $row_count_offset = -1;
- }
-
$levelclass = "level$level";
$courseclass = '';
@@ -297,7 +291,7 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
$headercell->scope = 'row';
$headercell->attributes['title'] = $object->stripped_name;
$headercell->attributes['class'] = 'cell rowspan ' . $levelclass;
- $headercell->rowspan = $row_count+1+$row_count_offset;
+ $headercell->rowspan = $row_count + 1;
$row->cells[] = $headercell;
foreach ($this->columns as $column) {

0 comments on commit d674a0e

Please sign in to comment.