From 1a5ed60ce188ddb61a00429d908848786575be7e Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Mon, 18 Mar 2024 15:35:16 -0500 Subject: [PATCH] fix: tup-711 confirmation e-mail not sent --- apps/tup-cms/src/apps/portal/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tup-cms/src/apps/portal/apps.py b/apps/tup-cms/src/apps/portal/apps.py index e0fb31c0d..3dff27a5b 100644 --- a/apps/tup-cms/src/apps/portal/apps.py +++ b/apps/tup-cms/src/apps/portal/apps.py @@ -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) - elif hasattr(cleaned_data, "email"): + elif ('email' in cleaned_data): send_confirmation_email(form.name, cleaned_data)