From da6eeba48f3ef8f56248fd0be695e58e074ecdfe Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 16:28:55 +0000 Subject: [PATCH] =?UTF-8?q?gestion=20cat=E9gorie=20de=20produits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/menus/barre_left/eldy_backoffice.php | 11 +++++++++++ htdocs/product/liste.php | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) 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; }