Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "MDL-33117 grade: added some smarts to the user report method …

…inject_rowspans() to deal with activity conditional availability"

This reverts commit 60b6b62.
  • Loading branch information...
commit db8e84ae1a81508dc55e705cc82489e41e495141 1 parent 5e6f2cd
@danpoltawski danpoltawski authored
Showing with 0 additions and 20 deletions.
  1. +0 −20 grade/report/user/lib.php
View
20 grade/report/user/lib.php
@@ -228,26 +228,6 @@ function inject_rowspans(&$element) {
}
$count = 1;
foreach ($element['children'] as $key=>$child) {
-
- $grade_object = $child['object'];
- // If grade object isn't hidden
- if ($grade_object->hidden != 1) {
-
- // If grade object is an module instance
- if (!empty($grade_object->itemmodule) && !empty($grade_object->iteminstance)) {
-
- $instances = $this->gtree->modinfo->get_instances();
- // If we can find the module instance
- if (!empty($instances[$grade_object->itemmodule][$grade_object->iteminstance])) {
-
- $cm = $instances[$grade_object->itemmodule][$grade_object->iteminstance];
- // Skip generating rowspans if the user cannot see the module instance
- if (!$cm->uservisible) {
- continue;
- }
- }
- }
- }
$count += $this->inject_rowspans($element['children'][$key]);
}
$element['rowspan'] = $count;
Please sign in to comment.
Something went wrong with that request. Please try again.