More info to help debug
This commit is contained in:
parent
85cddf638f
commit
7a361a3bde
@ -102,6 +102,7 @@ WrongSupplierCode=Vendor code invalid
|
||||
CustomerCodeModel=Customer code model
|
||||
SupplierCodeModel=Vendor code model
|
||||
Gencod=Barcode
|
||||
GencodBuyPrice=Barcode of price ref
|
||||
##### Professional ID #####
|
||||
ProfId1Short=Prof. id 1
|
||||
ProfId2Short=Prof. id 2
|
||||
|
||||
@ -493,10 +493,13 @@ $trackid = 'xxxx'.$object->id;
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
||||
|
||||
if ($search_all) {
|
||||
$setupstring = '';
|
||||
foreach ($fieldstosearchall as $key => $val) {
|
||||
$fieldstosearchall[$key] = $langs->trans($val);
|
||||
$setupstring .= $key."=".$val.";";
|
||||
}
|
||||
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'</div>';
|
||||
print '<!-- Search done like if PRODUCT_QUICKSEARCH_ON_FIELDS = '.$setupstring.' -->'."\n";
|
||||
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'</div>'."\n";
|
||||
}
|
||||
|
||||
$moreforfilter = '';
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user