Skip to content

Commit c83282b

Browse files
committed
N°9223 - Portal - AttributeExternalKey or AttributeEnum are not displayed after adding a link.
1 parent 4f87853 commit c83282b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

datamodels/2.x/itop-portal-base/portal/src/Controller/ObjectController.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,8 +1394,12 @@ public function GetInformationForLinkedSetAsJsonAction(Request $oRequest)
13941394
$sValue = $oFieldOutput->GetHtml();
13951395
}
13961396
$aObjectData['attributes']['lnk__'.$sAttCode] = [
1397-
'att_code' => $sAttCode,
1398-
'value' => $sValue,
1397+
'object_class' => $sLinkClass,
1398+
'object_id' => $oNewLink->GetKey(),
1399+
'prefix' => 'lnk__',
1400+
'attribute_code' => $sAttCode,
1401+
'attribute_type' => get_class($oAttDef),
1402+
'value_html' => $sValue,
13991403
'css_inline' => $oFieldOutput->GetCss(),
14001404
'js_inline' => $oFieldOutput->GetJs(),
14011405
];

0 commit comments

Comments
 (0)