2
0
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:
Laurent Destailleur
2010-10-11 21:32:53 +00:00
parent 60e9afdec9
commit 921aac798e
6 changed files with 52 additions and 26 deletions

View File

@@ -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 != '')
{