Fix: problème de menu si le module "catégorie" n'est pas activé
This commit is contained in:
parent
6679023340
commit
2496a80138
@ -58,9 +58,16 @@ function llxHeader($head = "", $title="", $help_url='',$addons='')
|
|||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/product/liste.php?type=0", $langs->trans("List"));
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/product/liste.php?type=0", $langs->trans("List"));
|
||||||
|
|
||||||
if ($user->societe_id == 0 && $user->rights->produit->creer)
|
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"));
|
$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"));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->categorie->enabled)
|
if ($conf->categorie->enabled)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user