Small oversight

This commit is contained in:
jay-tux 2025-04-29 13:37:58 +02:00
parent 6928da272f
commit ab8cb36fd8
Signed by: jay-tux
GPG Key ID: 84302006B056926E
1 changed files with 4 additions and 1 deletions

View File

@ -731,7 +731,10 @@ class PeerEvaluationState(val evaluation: PeerEvaluation) {
private fun Transaction.loadContents(): List<GroupEntry> {
return evaluation.edition.groups.map { group ->
val globalNotes = PeerEvaluationContents.selectAll()
.where { PeerEvaluationContents.groupId eq group.id }.firstOrNull()?.let {
.where {
(PeerEvaluationContents.groupId eq group.id) and
(PeerEvaluationContents.peerEvaluationId eq evaluation.id)
}.firstOrNull()?.let {
it[PeerEvaluationContents.content]
}