Skip to content

Commit

Permalink
Merge branch 'MDL-29327_none_24' of git://github.com/andyjdavis/moodl…
Browse files Browse the repository at this point in the history
…e into MOODLE_24_STABLE
  • Loading branch information
Sam Hemelryk committed Jan 6, 2013
2 parents 1565171 + b164a89 commit 2c6b793
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions grade/edit/tree/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -273,12 +273,6 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
$root = true; $root = true;
} }


$row_count_offset = 0;

if (empty($category_total_item) && !$this->moving) {
$row_count_offset = -1;
}

$levelclass = "level$level"; $levelclass = "level$level";


$courseclass = ''; $courseclass = '';
Expand All @@ -297,7 +291,7 @@ public function build_html_tree($element, $totals, $parents, $level, &$row_count
$headercell->scope = 'row'; $headercell->scope = 'row';
$headercell->attributes['title'] = $object->stripped_name; $headercell->attributes['title'] = $object->stripped_name;
$headercell->attributes['class'] = 'cell rowspan ' . $levelclass; $headercell->attributes['class'] = 'cell rowspan ' . $levelclass;
$headercell->rowspan = $row_count+1+$row_count_offset; $headercell->rowspan = $row_count + 1;
$row->cells[] = $headercell; $row->cells[] = $headercell;


foreach ($this->columns as $column) { foreach ($this->columns as $column) {
Expand Down

0 comments on commit 2c6b793

Please sign in to comment.