From 761022ecb59975f298c0cff4baded5214a16fdf7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Jan 2011 11:26:55 +0000 Subject: [PATCH] Fix: Must use same order than in menus --- htdocs/lib/company.lib.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/lib/company.lib.php b/htdocs/lib/company.lib.php index 77e3633a9e9..5a54e89253a 100644 --- a/htdocs/lib/company.lib.php +++ b/htdocs/lib/company.lib.php @@ -44,13 +44,6 @@ 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; @@ -58,6 +51,13 @@ function societe_prepare_head($object) $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;