diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php index 3ee6be52550..19296a831ca 100644 --- a/htdocs/includes/menus/barre_left/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php @@ -473,6 +473,17 @@ class MenuLeft { $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"), 1, $user->rights->stock->lire); $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"), 1, $user->rights->stock->mouvement->lire); } + + if ($conf->categorie->enabled) + { + $newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat", $langs->trans("Categories"), 0, $user->rights->categorie->lire); + if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/liste.php", $langs->trans("List"), 1, $user->rights->categorie->lire); + + if ($user->societe_id == 0) + { + if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/create.php", $langs->trans("NewCat"), 1, $user->rights->categorie->creer); + } + } } diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index 3ca28efa29b..9622c5dcea4 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -65,9 +65,6 @@ if (isset($_POST["button_removefilter_x"])) if (isset($_REQUEST['catid'])) { $catid = $_REQUEST['catid']; - if (!$catid && $catid == 0) - { - $catid = 1; }