MDL-13862 grader report - do not show column averages if error found
This commit is contained in:
@@ -972,6 +972,11 @@ class grade_report_grader extends grade_report {
|
||||
foreach ($this->gtree->items as $itemid=>$unused) {
|
||||
$item =& $this->gtree->items[$itemid];
|
||||
|
||||
if ($item->needsupdate) {
|
||||
$avghtml .= '<td class="cell c' . $columncount++.'"><span class="gradingerror">'.get_string('error').'</span></td>';
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($sum_array[$item->id])) {
|
||||
$sum_array[$item->id] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user