mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
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.
This commit is contained in:
parent
2d84748c26
commit
37f308629a
@ -48,7 +48,8 @@ class finalgrade extends grade_attribute_format implements unique_value, be_disa
|
|||||||
$this->label = $this->grade->grade_item->itemname;
|
$this->label = $this->grade->grade_item->itemname;
|
||||||
|
|
||||||
$isoverridden = $this->grade->is_overridden();
|
$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;
|
$val = $this->grade->finalgrade;
|
||||||
} else {
|
} else {
|
||||||
$val = $this->grade->rawgrade;
|
$val = $this->grade->rawgrade;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user