From 55353a1b8b1057a9a452c3384b6da8a13cd71f93 Mon Sep 17 00:00:00 2001 From: daverner Date: Tue, 25 Jan 2022 17:23:23 +0100 Subject: [PATCH] Fix on extra_link=location when showing entity --- Resources/views/Entities/showEntity.html.twig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Resources/views/Entities/showEntity.html.twig b/Resources/views/Entities/showEntity.html.twig index dc26477..5ccc325 100644 --- a/Resources/views/Entities/showEntity.html.twig +++ b/Resources/views/Entities/showEntity.html.twig @@ -119,7 +119,7 @@ {% endblock %} {% block sqli_entity_element %} - {# Generate compound ID #} + {# Generate compound ID #} {% set compound_id = [] %} {% for column_name in class.primary_key %} {% set compound_id = compound_id|merge( { (column_name): sqli_admin_attribute( element, column_name ) } ) %} @@ -134,7 +134,9 @@ {% if property_infos.extra_link == "content" %} {{ value }} {% elseif property_infos.extra_link == "location" %} - {{ value }} + {% set location = fetch_location(value) %} + {{ value }} {% elseif property_infos.extra_link == "tag" and bundle_exists( 'NetgenTagsBundle' ) %} {{ value }} {% else %}