|
@@ -178,7 +178,7 @@ if (!empty($conf->barcode->enabled)) {
|
|
|
$fieldstosearchall['p.barcode'] = 'Gencod';
|
|
|
$fieldstosearchall['pfp.barcode'] = 'GencodBuyPrice';
|
|
|
}
|
|
|
-// Personalized search criterias. Example: $conf->global->PRODUCT_QUICKSEARCH_ON_FIELDS = 'p.ref=ProductRef;p.label=ProductLabel'
|
|
|
+// Personalized search criterias. Example: $conf->global->PRODUCT_QUICKSEARCH_ON_FIELDS = 'p.ref=ProductRef;p.label=ProductLabel;p.description=Description;p.note=Note;'
|
|
|
if (!empty($conf->global->PRODUCT_QUICKSEARCH_ON_FIELDS)) {
|
|
|
$fieldstosearchall = dolExplodeIntoArray($conf->global->PRODUCT_QUICKSEARCH_ON_FIELDS);
|
|
|
}
|
|
@@ -800,10 +800,13 @@ if ($resql) {
|
|
|
}
|
|
|
|
|
|
if ($sall) {
|
|
|
+ $setupstring = '';
|
|
|
foreach ($fieldstosearchall as $key => $val) {
|
|
|
$fieldstosearchall[$key] = $langs->trans($val);
|
|
|
+ $setupstring .= $key."=".$val.";";
|
|
|
}
|
|
|
- print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>';
|
|
|
+ print '<!-- Search done like if PRODUCT_QUICKSEARCH_ON_FIELDS = '.$setupstring.' -->'."\n";
|
|
|
+ print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>'."\n";
|
|
|
}
|
|
|
|
|
|
// Filter on categories
|