Fix: On utilise toujours la bonne page de gestion des categories societes

This commit is contained in:
Laurent Destailleur
2007-05-01 19:58:43 +00:00
parent d586967a68
commit a7b9691455

View File

@@ -67,21 +67,10 @@ function societe_prepare_head($objsoc)
//affichage onglet cat<61>gorie
if ($conf->categorie->enabled)
{
if ($objsoc->fournisseur)
{
$head[$h][0] = DOL_URL_ROOT.'/fourn/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category';
$h++;
}
else
{
$head[$h][0] = DOL_URL_ROOT.'/comm/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category';
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/comm/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category';
$h++;
}
if ($conf->facture->enabled || $conf->compta->enabled || $conf->comptaexpert->enabled)