N°4756 - Ease extensibility for CRUD operations : Event Service - 💚 Fix CI

This commit is contained in:
Eric Espie
2022-12-16 11:42:40 +01:00
parent 0810a113c1
commit f8ec180a0f
2 changed files with 5 additions and 4 deletions

View File

@@ -274,10 +274,11 @@ function DisplayEvents(WebPage $oPage, $sClass)
];
$aRows = [];
foreach ($aEvents as $sEvent => $aEventInfo) {
$aDesc = $aEventInfo['description'];
/** @var \Combodo\iTop\Service\Events\Description\EventDescription $oDesc */
$oDesc = $aEventInfo['description'];
$aRows[] = [
'event' => $sEvent,
'description' => $aDesc['description'] ?? '',
'description' => $oDesc->GetDescription(),
];
}
$oTable = DataTableUIBlockFactory::MakeForStaticData(Dict::S('UI:Schema:Events:Defined'), $aColumns, $aRows);