Skip to content

Commit

Permalink
MDLUM-8760 quiz_markspersection - La note moyenne globale n'est pas c…
Browse files Browse the repository at this point in the history
…orrecte
  • Loading branch information
binhdv1983 committed Nov 6, 2023
1 parent 007eb8c commit 08ea4a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion markspersection_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public function calculate_sections_sum($attemptsids) {
}
$this->attemptsectionsmarks[$colname] += $sumgrades;
}
if ($sumgrades !== null) {
// Do not add the same attempt to a section.
if ($sumgrades !== null &&
(!isset($this->attemptsids[$colname]) || !in_array($attemptid, $this->attemptsids[$colname]))) {
$this->attemptsids[$colname][] = $attemptid;
}
}
Expand Down

0 comments on commit 08ea4a0

Please sign in to comment.