Update html.form.class.php

This commit is contained in:
Laurent Destailleur 2018-09-01 14:41:44 +02:00 committed by GitHub
parent 102b698c76
commit 945e925399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1102,9 +1102,9 @@ class Form
if (count($scrit) > 1) $sql.=")"; if (count($scrit) > 1) $sql.=")";
if (! empty($conf->barcode->enabled)) if (! empty($conf->barcode->enabled))
{ {
$sql .= " OR s.barcode LIKE '".$this->db->escape($filterkey)."%'"; $sql .= " OR s.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
} }
$sql.= " OR s.code_client LIKE '".$this->db->escape($prefix.$filterkey)."%' OR s.code_fournisseur LIKE '".$this->db->escape($prefix.$filterkey)."%'"; $sql.= " OR s.code_client LIKE '".$this->db->escape($prefix.$filterkey)."%' OR s.code_fournisseur LIKE '".$this->db->escape($prefix.$filterkey)."%'";
$sql.=")"; $sql.=")";
} }
$sql.=$this->db->order("nom","ASC"); $sql.=$this->db->order("nom","ASC");