From e4e562d28e2413eb58476de8035e063499922c65 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 27 Apr 2023 16:45:57 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06253=20-=20Fix=20crash=20due=20to=20miss?= =?UTF-8?q?ing=20test=20on=20main=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/Base/Component/DataTable/DataTableUIBlockFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/Application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php b/sources/Application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php index f388707fd..80237bcab 100644 --- a/sources/Application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php +++ b/sources/Application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php @@ -347,7 +347,8 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory unset($aLists[$sAlias], $aAuthorizedClasses[$sAlias]); } - if (!empty($sLinkageAttribute)) { + // Only for main class + if (!empty($sLinkageAttribute) && $sClassName === $oSet->GetFilter()->GetClass()) { // The set to display is in fact a set of links between the object specified in the $sLinkageAttribute // and other objects... // The display will then group all the attributes related to the link itself: