fix: use correct condition for available slots
This commit is contained in:
1 parent
306a3abc48
commit
4e92eebb39
1 file changed
+1
-1
@@ -34,7 +34,7 @@ class CreateController extends AbstractController
|
||||
|
||||
// Only allow applications on empty slots
|
||||
$availableSlots = (int) $assignment->getAvailableDispositions();
|
||||
if (0 < $availableSlots) {
|
||||
if (0 > $availableSlots) {
|
||||
$this->addFlash('error', 'Auf diesem Einsatz sind bereits alle Plätze belegt');
|
||||
|
||||
return $this->redirectToRoute('app_teamer_index');
|
||||
|
||||
Reference in new issue
Block a user