diff --git a/inc/field.class.php b/inc/field.class.php index 659f2743..88db150f 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -1257,6 +1257,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; } 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 = [ diff --git a/setup.php b/setup.php index 9dfc4c5c..393a39cd 100644 --- a/setup.php +++ b/setup.php @@ -228,8 +228,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 ], ], ];