From 89edc5b8c1273ec418838d8d16d1043d504afd0d Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Thu, 26 Sep 2024 11:52:49 +0200 Subject: [PATCH] T1856 FIX incoming emails when no reply-to is set - The value could be empty but not false. --- crm_request/models/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_request/models/request.py b/crm_request/models/request.py index cc32edb02..f2209cd5a 100644 --- a/crm_request/models/request.py +++ b/crm_request/models/request.py @@ -162,7 +162,7 @@ def message_new(self, msg, custom_values=None): "categ_id": category_id, "name": subject, # Our contact forms use the reply-to field for the sponsor's email - "email_from": msg.get("reply_to", msg.get("from")), + "email_from": msg.get("reply_to") or msg.get("from", ""), } if "partner_id" not in custom_values: