From e8f816e7ec998514cac39670ec513dc80b8af182 Mon Sep 17 00:00:00 2001 From: Lars Westermann Date: Thu, 13 Jun 2019 05:27:22 +0200 Subject: [PATCH] Bugfixes --- src/commonMain/kotlin/de/kif/common/ConstraintChecking.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commonMain/kotlin/de/kif/common/ConstraintChecking.kt b/src/commonMain/kotlin/de/kif/common/ConstraintChecking.kt index 097ae7c..f1e2fa2 100644 --- a/src/commonMain/kotlin/de/kif/common/ConstraintChecking.kt +++ b/src/commonMain/kotlin/de/kif/common/ConstraintChecking.kt @@ -69,6 +69,10 @@ fun checkConstraints( } } + if (schedule.workGroup.interested > schedule.room.places) { + errors += ConstraintError("The work group has more interested then the room has places") + } + for (leader in schedule.workGroup.leader) { for (s in against) { if (