From 3bb20d943a203f823d0e0e20f6f30629a347300a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 10 Sep 2019 11:58:02 +0200 Subject: [PATCH] Fix incorrect condition in template --- .../templates/pretixcontrol/order/index.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 323531800d..02499e28db 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -316,15 +316,17 @@ {% if line.item.admission and event.settings.attendee_emails_asked %}
{% trans "Attendee email" %}
- {% if line.attendee_email and not line.addon_to %} + {% if line.attendee_email %} {{ line.attendee_email }} -
- {% csrf_token %} - -
+ {% if not line.addon_to %} +
+ {% csrf_token %} + +
+ {% endif %} {% else %} {% trans "not answered" %} {% endif %}