diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 8ded8a64c72..0108ff1b55b 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -778,11 +778,12 @@ if ($resql) { if (! empty($arrayfields["ef.".$key]['checked'])) { - print ''; - $typeofextrafield=$extrafields->attribute_type[$key]; - if (in_array($typeofextrafield, array('varchar', 'int'))) + $typeofextrafield=$extrafields->attribute_type[$key]; + if (in_array($typeofextrafield, array('int'))) print ''; + else print ''; + if (in_array($typeofextrafield, array('varchar', 'int', 'select'))) { - $crit=$val; + $crit=$val; $tmpkey=preg_replace('/search_options_/','',$key); print ''; }