13598-Fix item End of life in Report templates

This commit is contained in:
Pablo Aragon 2024-05-07 13:01:22 +02:00
parent 0362fa0afc
commit c5a1314077
1 changed files with 10 additions and 8 deletions

View File

@ -2757,14 +2757,16 @@ if (is_metaconsole() === true) {
<td class="bolder"><?php echo __('Date'); ?></td>
<td class="mx180px">
<?php
$dates = enterprise_hook(
'inventory_get_dates',
[
$idAgentModule,
$idAgent,
$group,
]
);
if (isset($idAgent) === true) {
$dates = enterprise_hook(
'inventory_get_dates',
[
$idAgentModule,
$idAgent,
$group,
]
);
}
if ($dates === ENTERPRISE_NOT_HOOK) {
$dates = [];