From 98bcc85f161ce408252b37c0c93aec7dc159dc5b Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 24 Apr 2020 17:48:48 +0200 Subject: [PATCH] Handle empty objects in event logs view --- logs/templates/logs/aff_stats_logs.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/logs/templates/logs/aff_stats_logs.html b/logs/templates/logs/aff_stats_logs.html index 9fb6a496..a6dd613f 100644 --- a/logs/templates/logs/aff_stats_logs.html +++ b/logs/templates/logs/aff_stats_logs.html @@ -46,14 +46,22 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for version in revision.versions %} + {% if version.object_id %} {{ version.name }} + {% else %} + {{ version.name }} + {% endif %} + {% if revision.performed_by %} {{ revision.performed_by }} + {% else %} + {{ revision.performed_by }} + {% endif %} {{ revision.date_created }} {{ revision.comment }}