N°9807 - Polishing CKEditor for iTop 3.3.0-beta1

- create new function in attribute definition to get the short classname of the attribute
- fix iTop attribute class fields data injection
This commit is contained in:
Benjamin DALSASS
2026-07-16 14:56:38 +02:00
parent 918f110dc9
commit b4371200f5
7 changed files with 17 additions and 11 deletions

View File

@@ -555,7 +555,7 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
'object_class' => $sClassName,
'class_alias' => $sClassAlias,
'attribute_code' => $sAttCode,
'attribute_type' => $oAttDef->GetType(),
'attribute_type' => $oAttDef->GetTypeShortClassName(),
'attribute_label' => $sAttLabel,
'render' => $oAttDef->GetRenderForDataTable($sClassAlias),
];
@@ -737,7 +737,7 @@ JS;
'object_class' => $sClassName,
'class_alias' => $sClassAlias,
'attribute_code' => $sAttCode,
'attribute_type' => $oAttDef->GetType(),
'attribute_type' => $oAttDef->GetTypeShortClassName(),
'attribute_label' => $sAttLabel,
];
$aColumnDefinition["data"] = $sClassAlias."/".$sAttCode;