Merge pull request #25999 from bloxera/devcamp2023-5
Fix: inventory card missing ability to add or remove tabs
This commit is contained in:
commit
674424c120
1 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue