From b74b43727d48dbb79fd125b509dcf853bb6dae8b Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 28 May 2021 10:48:57 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03914=20Fix=20class=20friendlyname=20in?= =?UTF-8?q?=20lists=20using=20class=20aliases?= 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 d3e33bcc7..2f8bc2fb5 100644 --- a/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php +++ b/sources/application/UI/Base/Component/DataTable/DataTableUIBlockFactory.php @@ -572,13 +572,14 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory } else { $sRender = "let displayField = ''+row['".$sClassAlias."/friendlyname']+''; return displayField;"; } + $sAttLabel = MetaModel::GetName($sClassName); $aColumnDefinition[] = [ 'description' => $aData['label'], 'object_class' => $sClassName, 'class_alias' => $sClassAlias, 'attribute_code' => $sAttCode, 'attribute_type' => '_key_', - 'attribute_label' => $aData['alias'], + 'attribute_label' => $sAttLabel, "render" => "return row['".$sClassAlias."/hyperlink'];", ]; }