Search on select list is supported for extra fields

This commit is contained in:
Laurent Destailleur 2016-03-03 12:09:13 +01:00
parent 360e202582
commit aa34dffef5

View File

@ -778,9 +778,10 @@ if ($resql)
{ {
if (! empty($arrayfields["ef.".$key]['checked'])) if (! empty($arrayfields["ef.".$key]['checked']))
{ {
print '<td class="liste_titre">';
$typeofextrafield=$extrafields->attribute_type[$key]; $typeofextrafield=$extrafields->attribute_type[$key];
if (in_array($typeofextrafield, array('varchar', 'int'))) if (in_array($typeofextrafield, array('int'))) print '<td class="liste_titre right">';
else print '<td class="liste_titre">';
if (in_array($typeofextrafield, array('varchar', 'int', 'select')))
{ {
$crit=$val; $crit=$val;
$tmpkey=preg_replace('/search_options_/','',$key); $tmpkey=preg_replace('/search_options_/','',$key);