N°2334 Fix unable to display finalClass on remote class in view/edit lnk relations

Don't filter finalClass anymore when viewing object in \MetaModel::GetZListAttDefsFilteredForIndirectRemoteClass
Also added some type hinting
This commit is contained in:
Pierre Goiffon
2021-02-03 13:00:51 +01:00
parent 34d9eb2d96
commit 2e2b7f96f2
2 changed files with 9 additions and 10 deletions

View File

@@ -102,8 +102,7 @@ class UILinksWidget
$this->m_aEditableFields[] = $this->m_sExtKeyToRemote;
$aRemoteAttDefsToDisplay = MetaModel::GetZListAttDefsFilteredForIndirectRemoteClass($this->m_sRemoteClass);
foreach ($aRemoteAttDefsToDisplay as $oRemoteAttDef)
{
foreach ($aRemoteAttDefsToDisplay as $oRemoteAttDef) {
$sRemoteAttCode = $oRemoteAttDef->GetCode();
$this->m_aTableConfig['static::'.$sRemoteAttCode] = array(
'label' => $oRemoteAttDef->GetLabel(),