From 1a2dd84cef445442335f6f1c1423f74aed3df0a2 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 2 May 2017 10:02:16 +0200 Subject: [PATCH 1/2] FIX MAIN_FEATURES_LEVEL --- htdocs/core/menus/standard/eldy.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php index dffc5f9af1b..3ce2a872658 100644 --- a/htdocs/core/menus/standard/eldy.lib.php +++ b/htdocs/core/menus/standard/eldy.lib.php @@ -1253,7 +1253,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu } // Inventory - if ($conf->global->MAIN_LEVEL_FEATURES >= 2) + if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { if (! empty($conf->stock->enabled)) { From 3f7d488dd7c4001020e7c75eebe856ac4134b1e7 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 2 May 2017 10:09:57 +0200 Subject: [PATCH 2/2] Fix inventory --- htdocs/product/inventory/card.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/htdocs/product/inventory/card.php b/htdocs/product/inventory/card.php index dc279cc0929..827354b864c 100644 --- a/htdocs/product/inventory/card.php +++ b/htdocs/product/inventory/card.php @@ -127,8 +127,6 @@ if (empty($reshook)) header('Location: '.dol_buildpath('/product/inventory/card.php?action=create', 1)); exit; } - - break; } switch($action) {