From f228f91dc5b98dbf215c1e5d4661e50e83448067 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 28 Feb 2025 15:10:28 +0530 Subject: [PATCH] [UPDT] RECRUITMENT: Updated send mail preview url method from GET to POST --- .../templates/pipeline/pipeline_components/send_mail.html | 5 +++-- recruitment/views/actions.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/recruitment/templates/pipeline/pipeline_components/send_mail.html b/recruitment/templates/pipeline/pipeline_components/send_mail.html index e41464aaa..6e6d07959 100644 --- a/recruitment/templates/pipeline/pipeline_components/send_mail.html +++ b/recruitment/templates/pipeline/pipeline_components/send_mail.html @@ -1,7 +1,8 @@ {% load i18n %} - + hx-on-htmx-before-request="if (!$('#template').val()) { event.preventDefault(); }"> +
diff --git a/recruitment/views/actions.py b/recruitment/views/actions.py index 84122848a..cfcad4c3d 100644 --- a/recruitment/views/actions.py +++ b/recruitment/views/actions.py @@ -447,7 +447,7 @@ def get_mail_preview(request): """ This method is used to return the mail template preview as an HTTP response. """ - body = request.GET.get("body") + body = request.POST.get("body") candidate_id = request.GET.get("candidate_id") if not body: