From 360e20258226031f81d128ec4cf3cf0014eb15bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Mar 2016 11:39:13 +0100 Subject: [PATCH] Add fields to search on extrafields --- htdocs/societe/list.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index ba33236aefe..8ded8a64c72 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -779,6 +779,13 @@ if ($resql) if (! empty($arrayfields["ef.".$key]['checked'])) { print ''; + $typeofextrafield=$extrafields->attribute_type[$key]; + if (in_array($typeofextrafield, array('varchar', 'int'))) + { + $crit=$val; + $tmpkey=preg_replace('/search_options_/','',$key); + print ''; + } print ''; } }