From 5b60415166574a15bc0aab6372101e6b51a85d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 26 Jun 2019 12:39:57 +0200 Subject: [PATCH] fix error on macro renderPerson / withLink not taken into account --- CHANGELOG.md | 4 ++++ Resources/views/Person/macro.html.twig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 441fb318a..420719dfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,3 +41,7 @@ Version 1.5.6 - Update address validation - Add command to move person and all data of a person to a new one, and delete the old one. +Branche master +============== + +- fix error on macro renderPerson / withLink not taken into account diff --git a/Resources/views/Person/macro.html.twig b/Resources/views/Person/macro.html.twig index e6773f3ae..6c3a50f55 100644 --- a/Resources/views/Person/macro.html.twig +++ b/Resources/views/Person/macro.html.twig @@ -1 +1 @@ -{% macro render(p, withLink=false) %}{{ p.firstName }} {{ p.lastName }}{% endmacro %} \ No newline at end of file +{% macro render(p, withLink=true) %}{% if withLink %}{% endif %}{{ p.firstName }} {{ p.lastName }}{% if withLink %}{% endif %}{% endmacro %} \ No newline at end of file