N°6253 - Fix crash due to missing test on main class

This commit is contained in:
Molkobain
2023-04-27 16:45:57 +02:00
parent c1ae0ce7fa
commit e4e562d28e

View File

@@ -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: