From 919c8347855bccbce9096ff5b621addbe1e39f5b Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Tue, 10 Jun 2025 16:07:42 +0200 Subject: [PATCH] IBX-8561: Fixed relation list when trying to display unauthorized content --- .../field_type/edit/relation_base.html.twig | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/relation_base.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/relation_base.html.twig index ba127be78a..241242c1fd 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/relation_base.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/relation_base.html.twig @@ -96,18 +96,18 @@ {% set body_rows = [] %} {% for relation in relations %} - {% set body_row_cols = [] %} - {% set col_raw_actions %} - {{ remove_item_btn }} + {% if relation.contentInfo is not null and relation.contentType is not null %} + {% set body_row_cols = [] %} + {% set col_raw_actions %} + {{ remove_item_btn }} - {% include '@ibexadesign/ui/component/embedded_item_actions/embedded_item_actions.html.twig' with { - content_id: relation.contentId, - location_id: relation.contentInfo.mainLocationId, - version_no: relation.contentInfo.currentVersionNo, - } only %} - {% endset %} + {% include '@ibexadesign/ui/component/embedded_item_actions/embedded_item_actions.html.twig' with { + content_id: relation.contentId, + location_id: relation.contentInfo.mainLocationId, + version_no: relation.contentInfo.currentVersionNo, + } only %} + {% endset %} - {% if relation.contentInfo is not null and relation.contentType is not null %} {% set col_raw_checkbox %} v is not null), }]) %} {% endif %} {% endfor %}