From 1543e68f096f03636e7eb5d99fe0f47b5b34c2d9 Mon Sep 17 00:00:00 2001 From: priojk Date: Fri, 22 Sep 2023 16:17:55 +0200 Subject: [PATCH] Fix: inventory card missing ability to add tabs --- htdocs/product/inventory/lib/inventory.lib.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/product/inventory/lib/inventory.lib.php b/htdocs/product/inventory/lib/inventory.lib.php index 95bcfcd1fe5..a3534229246 100644 --- a/htdocs/product/inventory/lib/inventory.lib.php +++ b/htdocs/product/inventory/lib/inventory.lib.php @@ -68,10 +68,17 @@ function inventoryAdminPrepareHead() */ function inventoryPrepareHead(&$inventory, $title = 'Inventory', $get = '') { - global $langs; + global $langs, $conf; - return array( + $head = array( array(dol_buildpath('/product/inventory/card.php?id='.$inventory->id.$get, 1), $langs->trans('Card'), 'card'), array(dol_buildpath('/product/inventory/inventory.php?id='.$inventory->id.$get, 1), $langs->trans('Inventory'), 'inventory') ); + + $h=2; + + complete_head_from_modules($conf, $langs, $inventory, $head, $h, 'inventory'); + complete_head_from_modules($conf, $langs, $inventory, $head, $h, 'inventory', 'remove'); + + return $head; }