diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 334a90d07c2..5a2f8ef8cc2 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -492,7 +492,7 @@ if ($_GET["action"] == 'create') print '
'; print ''; print ''; print '
'.$langs->trans("Company").''; - $html->select_societes('','socid','s.fournisseur=0',1); + $html->select_societes('','socid','',1,1); print '
'; print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 77c0ea30b20..3229cad0b7d 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -553,8 +553,8 @@ class Form if ($showtype) { if ($obj->client || $obj->fournisseur) $label.=' ('; - if ($obj->client == 1) $label.=$langs->trans("Customer"); - if ($obj->client == 2) $label.=$langs->trans("Prospect"); + if ($obj->client == 1 || $obj->client == 3) $label.=$langs->trans("Customer"); + if ($obj->client == 2 || $obj->client == 3) $label.=($obj->client==3?', ':'').$langs->trans("Prospect"); if ($obj->fournisseur) $label.=($obj->client?', ':'').$langs->trans("Supplier"); if ($obj->client || $obj->fournisseur) $label.=')'; }