Skip to content

Commit

Permalink
[BUGFIX] Fix wrong check for waitlist moval
Browse files Browse the repository at this point in the history
The client uses the backend to add additional registrations. Because of this, the count of free places becomes not 0 but negative. because of the wrong check this leads to the bug that *all* valid waiting list registrations are moved from the waiting list to the regular list
  • Loading branch information
georgringer authored and derhansen committed Feb 27, 2024
1 parent 08f5db0 commit e3be3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/RegistrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function moveUpWaitlistRegistrations(Event $event, array $settings): void
{
// Early return if move up not enabled, no registrations on waitlist or no free places left
if (!$event->getEnableWaitlistMoveup() || $event->getRegistrationsWaitlist()->count() === 0 ||
$event->getFreePlaces() === 0
$event->getFreePlaces() <= 0
) {
return;
}
Expand Down

0 comments on commit e3be3d2

Please sign in to comment.