Make message field optional for all contact forms

This commit is contained in:
Yannik Rödel 2023-02-08 10:42:15 +01:00
parent 09918290f0
commit c43b2ab774

View file

@ -170,7 +170,7 @@ if not isinstance(hcaptcha_data, Mapping) or not hcaptcha_data.get("success", Fa
# form (see the match block below).
contact_name = get_form_value("contactname")
contact_email = get_form_value("contactemail")
message = get_form_value("message")
message = get_form_value("message", "[Keine Nachricht hinterlassen]")
attachment: Optional[tuple[str, bytes]] = None
ticket_details = collections.OrderedDict()