forked from Wavyzz/dolibarr
Fix: Use a better way to bold search criteria (no use of javascript regex, but use php regex). Usage of * was making javascript crazy.
Fix: When field is manually cleaned, we must also clean hidden fields. New: Can define number of char before showing first answer
This commit is contained in:
@@ -922,7 +922,7 @@ class Form
|
||||
}
|
||||
if (strval($filtertype) != '') $sql.=" AND p.fk_product_type=".$filtertype;
|
||||
// Add criteria on ref/label
|
||||
if (! empty($conf->global->PRODUCT_DONOTSEARCH_ANYWHERE))
|
||||
if (! empty($conf->global->PRODUCT_DONOTSEARCH_ANYWHERE)) // Can use index
|
||||
{
|
||||
if ($filterkey && $filterkey != '')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user