From f39081e62cb56c36058216834533d30cbb0d4f9b Mon Sep 17 00:00:00 2001
From: ryankavalsky <ryankavalsky@3075433.no-reply.drupal.org>
Date: Sat, 26 Dec 2020 09:23:21 -0700
Subject: [PATCH] Issue #3183463 by ryankavalsky, cluke009, owenbush: Unlimited
 Slots Not Working

---
 .../recurring_events_registration/src/Form/RegistrantForm.php   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/recurring_events_registration/src/Form/RegistrantForm.php b/modules/recurring_events_registration/src/Form/RegistrantForm.php
index 6320b94..c799540 100644
--- a/modules/recurring_events_registration/src/Form/RegistrantForm.php
+++ b/modules/recurring_events_registration/src/Form/RegistrantForm.php
@@ -411,7 +411,7 @@ class RegistrantForm extends ContentEntityForm {
 
     $form_state->setRedirect('entity.registrant.add_form', ['eventinstance' => $event_instance->id()]);
 
-    if ($registration && $registration_open && ($availability > 0 || $waitlist)) {
+    if ($registration && $registration_open && ($availability > 0 || $availability == -1 || $waitlist)) {
       $add_to_waitlist = (int) $form_state->getValue('add_to_waitlist');
       $this->entity->setEventSeries($event_series);
       $this->entity->setEventInstance($event_instance);
-- 
GitLab