Add fields to search on extrafields

This commit is contained in:
Laurent Destailleur 2016-03-03 11:39:13 +01:00
parent fd2166ed11
commit 360e202582

View File

@ -779,6 +779,13 @@ if ($resql)
if (! empty($arrayfields["ef.".$key]['checked']))
{
print '<td class="liste_titre">';
$typeofextrafield=$extrafields->attribute_type[$key];
if (in_array($typeofextrafield, array('varchar', 'int')))
{
$crit=$val;
$tmpkey=preg_replace('/search_options_/','',$key);
print '<input class="flat" size="4" type="text" name="search_options_'.$tmpkey.'" value="'.dol_escape_htmltag($search_array_options['search_options_'.$tmpkey]).'">';
}
print '</td>';
}
}