Available waitlist allows negative values

Created on 5 January 2024, 12 months ago
Updated 30 January 2024, 11 months ago

We ran into an issue where the waitlist capacity would sometimes calculate to a negative number. We changed the logic to make sure it would never be allowed to go below zero.

-    return $waitlist_capacity - $waitlisted;
+    return $this->waitlistCapacity() <= 0 ? 0 : $waitlist_capacity - $waitlisted;
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Intercept Events

Created by

πŸ‡ΊπŸ‡ΈUnited States brewskib

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024