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

@ -66,23 +66,12 @@ function societe_prepare_head($objsoc)
//affichage onglet catégorie //affichage onglet catégorie
if ($conf->categorie->enabled) 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][0] = DOL_URL_ROOT.'/comm/categorie.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans('Categories'); $head[$h][1] = $langs->trans('Categories');
$head[$h][2] = 'category'; $head[$h][2] = 'category';
$h++; $h++;
} }
}
if ($conf->facture->enabled || $conf->compta->enabled || $conf->comptaexpert->enabled) if ($conf->facture->enabled || $conf->compta->enabled || $conf->comptaexpert->enabled)
{ {