From 37f308629a23aa07104d1be415f39dec798f3620 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Fri, 5 Dec 2014 15:54:17 +0800 Subject: [PATCH] MDL-48347 gradebook: Single view shows all grade items. Manual grade items, course totals, and categroy totals were not being displayed in the single view. --- grade/report/singleview/classes/local/ui/finalgrade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grade/report/singleview/classes/local/ui/finalgrade.php b/grade/report/singleview/classes/local/ui/finalgrade.php index dd5348c5b9b..d57083f730e 100644 --- a/grade/report/singleview/classes/local/ui/finalgrade.php +++ b/grade/report/singleview/classes/local/ui/finalgrade.php @@ -48,7 +48,8 @@ class finalgrade extends grade_attribute_format implements unique_value, be_disa $this->label = $this->grade->grade_item->itemname; $isoverridden = $this->grade->is_overridden(); - if (!empty($isoverridden)) { + // If the grade is overridden or the grade type is not an activity then use finalgrade. + if (!empty($isoverridden) || $this->grade->grade_item->itemtype != 'mod') { $val = $this->grade->finalgrade; } else { $val = $this->grade->rawgrade;