Update html.form.class.php

This commit is contained in:
Laurent Destailleur 2019-03-14 17:35:44 +01:00 committed by GitHub
parent 1b9a2e5cfc
commit c6b3d81d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2663,7 +2663,7 @@ class Form
if (count($scrit) > 1) $sql.=")";
if (! empty($conf->barcode->enabled)){
$sql.= " OR p.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
$sql.= " OR pfp.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
if (! empty($conf->global->BARCODE_USE_BARCODE_FOR_SUPPLIER_PRICES)) $sql.= " OR pfp.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
}
$sql.=')';
}