diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index f4eca4bc09b..8563ce91200 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -625,17 +625,20 @@ class FormCompany */ function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $order='code', $showempty=0) { - $lesTypes = $object->liste_type_contact($source, $order); - print ''; + if ($showempty) print ''; + foreach($lesTypes as $key=>$value) + { + print ''; + } + print "\n"; } - print "\n"; } /**