Skip to content

Commit 825bd84

Browse files
committed
Gradebook: #fix error in work user function call - refs BT#22425
1 parent 377f8e1 commit 825bd84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/main/gradebook/lib/be/studentpublicationlink.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ public function calc_score($studentId = null, $type = null)
138138
$sumResult = 0;
139139

140140
foreach ($scores as $data) {
141-
if (!array_key_exists($data->getUserId(), $students)) {
141+
if (!array_key_exists($data->getUser()->getId(), $students)) {
142142
if (0 != $assignment->getQualification()) {
143-
$students[$data->getUserId()] = $data->getQualification();
143+
$students[$data->getUser()->getId()] = $data->getQualification();
144144
$rescount++;
145145
$sum += $data->getQualification() / $assignment->getQualification();
146146
$sumResult += $data->getQualification();

0 commit comments

Comments
 (0)