From 6784aaf9a936ef6774de8b673bfb290067a5b314 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Dec 2005 00:32:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20bug=20#14981=20overview:=20Probl=E8me=20?= =?UTF-8?q?ajout=20produit=20si=20cat=E9gorie=20activ=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/product/pre.inc.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/htdocs/fourn/product/pre.inc.php b/htdocs/fourn/product/pre.inc.php index a92b5559133..96dca6448c8 100644 --- a/htdocs/fourn/product/pre.inc.php +++ b/htdocs/fourn/product/pre.inc.php @@ -59,14 +59,7 @@ function llxHeader($head = "", $title="", $help_url='',$addons='') if ($user->societe_id == 0 && $user->rights->produit->creer) { - if ($conf->categorie->enabled) - { - $menu->add_submenu(DOL_URL_ROOT."/fourn/product/fiche.php?action=create&type=0&catid=".$_REQUEST['catid'], $langs->trans("NewProduct")); - } - else - { - $menu->add_submenu(DOL_URL_ROOT."/fourn/product/fiche.php?action=create&type=0", $langs->trans("NewProduct")); - } + $menu->add_submenu(DOL_URL_ROOT."/fourn/product/fiche.php?action=create&type=0", $langs->trans("NewProduct")); } } @@ -77,7 +70,7 @@ function llxHeader($head = "", $title="", $help_url='',$addons='') $menu->add('liste.php','Top'); - if (isset($_REQUEST['catid']) && $_REQUEST['catid'] != '') + if (isset($_REQUEST['catid']) && $_REQUEST['catid']) { $catid = $_REQUEST['catid'];