From b84117f3d6678e8f3189de5ef931da7657e63cf3 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Fri, 21 Sep 2018 19:51:28 +0200 Subject: [PATCH] Solved user source bug --- application/src/Entity/Attribut/NameSourceAttribut.php | 2 +- application/templates/source/view/content/user.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/Entity/Attribut/NameSourceAttribut.php b/application/src/Entity/Attribut/NameSourceAttribut.php index 8e3a7ce..17c1ee0 100644 --- a/application/src/Entity/Attribut/NameSourceAttribut.php +++ b/application/src/Entity/Attribut/NameSourceAttribut.php @@ -21,6 +21,6 @@ trait NameSourceAttribut public function getNameSource(): NameSourceInterface { - return $this->getNameSource(); + return $this->nameSource; } } diff --git a/application/templates/source/view/content/user.html.twig b/application/templates/source/view/content/user.html.twig index 9fe2559..00d27be 100644 --- a/application/templates/source/view/content/user.html.twig +++ b/application/templates/source/view/content/user.html.twig @@ -1 +1 @@ -{% include "source/view/content/name." ~ app.request.requestFormat ~ ".twig" with {'source':source.userSource}%} \ No newline at end of file +{% include "source/view/content/name." ~ app.request.requestFormat ~ ".twig" with {'source':source.nameSource}%} \ No newline at end of file