Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/src/main/kotlin/dev/dres/mgmt/TemplateManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ object TemplateManager {
}

if (task.isNew || task.taskGroup.name != apiTask.taskGroup) {
task.taskGroup = DbTaskGroup.query(DbTaskGroup::name eq apiTask.taskGroup).first()
task.taskGroup = DbTaskGroup.query(
(DbTaskGroup::name eq apiTask.taskGroup) and (DbTaskGroup::evaluation eq dbEvaluationTemplate)
).firstOrNull() ?: throw IllegalArgumentException("Unknown task group '${apiTask.taskGroup}' for evaluation ${apiEvaluationTemplate.id}.")
}

/* Update task targets. */
Expand Down