From fece448308826ba7422af428896a0ed323f14cf4 Mon Sep 17 00:00:00 2001 From: s3h10r Date: Mon, 26 May 2014 17:28:36 +0200 Subject: [PATCH] fixes: attachments in public comments not shown in public_view_ticket if no followup.ticketchange_set.all is present the attachments of followups were not shown to a public user. --- helpdesk/templates/helpdesk/public_view_ticket.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/public_view_ticket.html b/helpdesk/templates/helpdesk/public_view_ticket.html index d4b50cf0..d77028bc 100644 --- a/helpdesk/templates/helpdesk/public_view_ticket.html +++ b/helpdesk/templates/helpdesk/public_view_ticket.html @@ -64,11 +64,11 @@ {% for change in followup.ticketchange_set.all %}
  • {% blocktrans with change.field as field and change.old_value as old_value and change.new_value as new_value %}Changed {{ field }} from {{ old_value }} to {{ new_value }}.{% endblocktrans %}
  • {% endfor %} +{% endif %} {% for attachment in followup.attachment_set.all %}{% if forloop.first %}
    {% endif %} {% endfor %} -{% endif %} {% endfor %} {% endif %}