From 252f01c96ccfcbd2c40399c713ef569a2ca660ad Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 2 Feb 2015 09:18:33 +0100 Subject: [PATCH] Fixing diff emails --- .../templates/emails/includes/fields_diff-html.jinja | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja index 6d3728e4..0fdb8cd1 100644 --- a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja +++ b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja @@ -89,19 +89,21 @@ {% endif %} {# TAGS AND WATCHERS #} {% elif field_name in ["tags", "watchers"] %} + {% set values_from = values.0 or [] %} + {% set values_to = values.1 or [] %}

{{ field_name }}

{{ _("from") }}
- {{ ', '.join(values.0) }} + {{ ', '.join(values_from) }} {{ _("to") }}
- {{ ', '.join(values.1) }} + {{ ', '.join(values_to) }} {# DESCRIPTIONS #}