From 9391a004e4a8ff081314867d996c683d0bc4c5dd Mon Sep 17 00:00:00 2001 From: Arthur Duarte Date: Mon, 20 Oct 2025 17:13:35 -0300 Subject: [PATCH 1/3] Update toolbox.class.php Added HXAP Asset --- inc/toolbox.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/toolbox.class.php b/inc/toolbox.class.php index fc424eba..a3afdd7f 100644 --- a/inc/toolbox.class.php +++ b/inc/toolbox.class.php @@ -231,6 +231,7 @@ public static function getGlpiItemtypes(): array PassiveDCEquipment::class, Cable::class, Socket::class, + \Glpi\CustomAsset\HXAPAsset::class, ]; $assistance_itemtypes = [ From 3b0d993d156b22c4c09e70ffd10a4c0c879dc132 Mon Sep 17 00:00:00 2001 From: Arthur Duarte Date: Mon, 20 Oct 2025 17:51:57 -0300 Subject: [PATCH 2/3] Update setup.php Removed dev flag --- setup.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.php b/setup.php index eb0f5e4c..09fc1371 100644 --- a/setup.php +++ b/setup.php @@ -231,8 +231,7 @@ function plugin_version_fields() 'requirements' => [ 'glpi' => [ 'min' => PLUGIN_FIELDS_MIN_GLPI, - 'max' => PLUGIN_FIELDS_MAX_GLPI, - 'dev' => true, //Required to allow 9.2-dev + 'max' => PLUGIN_FIELDS_MAX_GLPI ], ], ]; From 14c9b118db35e534e22799b6ddf453bf92bb6ab4 Mon Sep 17 00:00:00 2001 From: Arthur Duarte Date: Tue, 21 Oct 2025 11:27:19 -0300 Subject: [PATCH 3/3] Add tab label --- inc/field.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/inc/field.class.php b/inc/field.class.php index 0257413d..7f4e245d 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1246,6 +1246,24 @@ public static function prepareHtmlFields( unset($_SESSION['plugin']['fields']['values_sent']); + // Add tab label above tab content + if (!$massiveaction && $show_table) { + $tab_data = [ + 'itemtype' => PluginFieldsContainer::getType(), + 'id' => $container_obj->getID(), + 'label' => $container_obj->fields['label'], + ]; + $tab_label = PluginFieldsLabelTranslation::getLabelFor($tab_data); + $tab_html = " + + + + + +
" . htmlspecialchars($tab_label) . "
"; + return $tab_html . $html; + } + return $html; }