Skip to content

Commit

Permalink
fix: tup-675 submit form without email gives 500 (#399)
Browse files Browse the repository at this point in the history
* fix: tup-675 tour request form 500 error on submit

* fix: tup-675 incorrect syntax to check for email prop
  • Loading branch information
wesleyboar authored Dec 21, 2023
1 parent f07eefa commit a4ce145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tup-cms/src/apps/portal/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def callback(form, cleaned_data, **kwargs):
logger.debug(f"received submission from {form.name}")
if form.name == 'rt-ticket-form':
submit_ticket(cleaned_data)
else:
elif hasattr(cleaned_data, "email"):
send_confirmation_email(form.name, cleaned_data)


Expand Down

0 comments on commit a4ce145

Please sign in to comment.