Skip to content

Commit

Permalink
Fix: Must use same order than in menus
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 19, 2011
1 parent 944277b commit 8a58ab9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions htdocs/lib/company.lib.php
Expand Up @@ -44,20 +44,20 @@ function societe_prepare_head($object)
$head[$h][2] = 'card';
$h++;

if ($object->client==1 || $object->client==3 || $object->object->client==1 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Customer");
$head[$h][2] = 'customer';
$h++;
}
if ($object->client==2 || $object->client==3 || $object->object->client==2 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Prospect");
$head[$h][2] = 'prospect';
$h++;
}
if ($object->client==1 || $object->client==3 || $object->object->client==1 || $object->object->client==3)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$object->id;
$head[$h][1] = $langs->trans("Customer");
$head[$h][2] = 'customer';
$h++;
}
if ($object->fournisseur || $object->object->fournisseur)
{
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$object->id;
Expand Down

0 comments on commit 8a58ab9

Please sign in to comment.