Fix: Le gestion des categories fournisseurs etait en double dans 2 tables diffrentes.

This commit is contained in:
Laurent Destailleur 2007-11-11 22:03:24 +00:00
parent 90873765d3
commit 9cf928f403
3 changed files with 18 additions and 6 deletions

View File

@ -17,7 +17,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/
/**
@ -95,6 +94,13 @@ function llxHeader($head = "", $title="", $addons='') {
}
}
if ($conf->categorie->enabled)
{
$langs->load("categories");
// Catégories fournisseurs
$menu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0);
}
left_menu($menu->liste);
}
?>

View File

@ -55,7 +55,13 @@ function llxHeader($head = "")
}
$menu->add_submenu(DOL_URL_ROOT."/contact/index.php",$langs->trans("Contacts"));
}
if ($conf->categorie->enabled)
{
$langs->load("categories");
$menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("Categories"));
}
if ($conf->commercial->enabled && isset($user->rights->commercial->lire) && $user->rights->commercial->lire)
{
$langs->load("commercial");

View File

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007 Auguria SARL <info@auguria.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007 Auguria SARL <info@auguria.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -18,7 +18,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/
/**
@ -117,7 +116,8 @@ function llxHeader($head = "", $urlp = "", $title="")
if ($conf->categorie->enabled)
{
$menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("Categories"));
$langs->load("categories");
$menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("ProductsCategoriesShort"));
}
left_menu($menu->liste);