From aa34dffef5c799044ab4f2855648f0443064ca3a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Mar 2016 12:09:13 +0100 Subject: [PATCH] Search on select list is supported for extra fields --- htdocs/societe/list.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ''; }