From 41c1e765c2215cdf9e7ffe9fc82cfba0f5885a78 Mon Sep 17 00:00:00 2001 From: bbe Date: Thu, 29 Oct 2020 23:33:22 +0100 Subject: [PATCH] add default empty when a ticket custom field value is null --- helpdesk/templates/helpdesk/ticket_desc_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index 038fc05e..47724048 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -21,7 +21,7 @@ {% for customfield in ticket.ticketcustomfieldvalue_set.all %} {{ customfield.field.label }} - {% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value }}{% endifequal %} + {% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value|default:"" }}{% endifequal %} {% endfor %} {% trans "Due Date" %}