-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Not able to turn off recurring event
and then turn on Offer seats
in the same request.
#21412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
wokepadia
added a commit
to wokepadia/cal.com
that referenced
this issue
May 20, 2025
Fixes calcom#21412. For `finalSeatsPerTimeSlot` and `finalRecurringEvent` we were falling back to the DB value if `seatsPerTimeSlot` or `recurringEvent` was falsy. Instead, we should only fallback to the DB value if those values are undefined. Those values being undefined means that they have not changed, while those values being null means they are being reset to not have any value in them. This was causing an error when a user was trying to turn off `Recurring event` and turn on `Offer seats` in the same event.
3 tasks
wokepadia
added a commit
to wokepadia/cal.com
that referenced
this issue
May 20, 2025
Fixes calcom#21412. For `finalSeatsPerTimeSlot` and `finalRecurringEvent` we were falling back to the DB value if `seatsPerTimeSlot` or `recurringEvent` was falsy. Instead, we should only fallback to the DB value if those values are undefined. Those values being undefined means that they have not changed, while those values being null means they are being reset to not have any value in them. This was causing an error when a user was trying to turn off `Recurring event` and turn on `Offer seats` in the same event.
wokepadia
added a commit
to wokepadia/cal.com
that referenced
this issue
May 20, 2025
Fixes calcom#21412. For `finalSeatsPerTimeSlot` and `finalRecurringEvent` we were falling back to the DB value if `seatsPerTimeSlot` or `recurringEvent` was falsy. Instead, we should only fallback to the DB value if those values are undefined. Those values being undefined means that they have not changed, while those values being null means they are being reset to not have any value in them. This was causing an error when a user was trying to turn off `Recurring event` and turn on `Offer seats` in the same event.
wokepadia
added a commit
to wokepadia/cal.com
that referenced
this issue
May 21, 2025
Fixes calcom#21412. For `finalSeatsPerTimeSlot` and `finalRecurringEvent` we were falling back to the DB value if `seatsPerTimeSlot` or `recurringEvent` was falsy. Instead, we should only fallback to the DB value if those values are undefined. Those values being undefined means that they have not changed, while those values being null means they are being reset to not have any value in them. This was causing an error when a user was trying to turn off `Recurring event` and turn on `Offer seats` in the same event.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a bug? Please fill out the sections below. 👍
Issue Summary
Recurring event and offer seats cannot be turned on at the same time, so we make sure that we don't set both to true at the same time. But if I have recurring events on, and I want to turn it off and turn on
Offer seats
in a single request (i.e. doing both actions and then clicking save), I get an error.Steps to Reproduce
Offer seats
option.Recurring Events and Offer Seats cannot be active at the same time.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Actual Results
Expected Results
Technical details
I will be sending a PR for this issue.
Evidence
The text was updated successfully, but these errors were encountered: