Fix bug in peer evaluation data loading

This commit is contained in:
2025-04-29 11:24:10 +02:00
parent c88d0d2e58
commit 88449e9580

View File

@ -730,7 +730,8 @@ class PeerEvaluationState(val evaluation: PeerEvaluation) {
private fun Transaction.loadContents(): List<GroupEntry> { private fun Transaction.loadContents(): List<GroupEntry> {
val found = (Groups leftJoin PeerEvaluationContents).selectAll().where { val found = (Groups leftJoin PeerEvaluationContents).selectAll().where {
Groups.editionId eq evaluation.edition.id (Groups.editionId eq evaluation.edition.id) and
(PeerEvaluationContents.peerEvaluationId eq evaluation.id)
}.associate { gc -> }.associate { gc ->
val group = Group[gc[Groups.id]] val group = Group[gc[Groups.id]]
val content = gc[PeerEvaluationContents.content] ?: "" val content = gc[PeerEvaluationContents.content] ?: ""
@ -799,22 +800,3 @@ class PeerEvaluationState(val evaluation: PeerEvaluation) {
contents.refresh() contents.refresh()
} }
} }