From 8764aacd92b42e068c11bbdfda1e3bdf7e3c77db Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 1 Mar 2022 15:03:21 +0100 Subject: [PATCH] fix confusion between document dates --- .../Resources/views/List/list_item.html.twig | 4 ++-- .../Resources/views/Macro/updatedBy.html.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig index 44bcf5cbc..847ddd388 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/List/list_item.html.twig @@ -24,8 +24,8 @@
{% if document.date is not null %} -
- {{ document.createdAt|format_date('short') }} +
+ {{ document.date|format_date('short') }}
{% endif %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Macro/updatedBy.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Macro/updatedBy.html.twig index cbfd7660b..3df3f9afb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Macro/updatedBy.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Macro/updatedBy.html.twig @@ -8,7 +8,7 @@ {% endif %} {% if entity.updatedBy != null %} {% if entity.updatedAt != null %} - {{ ', ' ~ 'by_user'|trans }} + {{ ', ' }}
{{ 'by_user'|trans }} {% else %} {{ 'Last updated by'|trans }} {% endif %} @@ -29,7 +29,7 @@ {% endif %} {% if entity.createdBy != null %} {% if entity.createdAt != null %} - {{ ', ' ~ 'by_user'|trans }} + {{ ', ' }}
{{ 'by_user'|trans }} {% else %} {{ 'Created by'|trans }} {% endif %}