Skip to content

Commit

Permalink
Merge pull request #9368 from atm-ph/fix_7.0_search_company_by_code
Browse files Browse the repository at this point in the history
Fix search company by code
  • Loading branch information
eldy committed Sep 1, 2018
2 parents 677d7dd + 945e925 commit fe7a0c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -1102,8 +1102,9 @@ function select_thirdparty_list($selected='',$htmlname='socid',$filter='',$showe
if (count($scrit) > 1) $sql.=")";
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.=")";
}
$sql.=$this->db->order("nom","ASC");
Expand Down

0 comments on commit fe7a0c8

Please sign in to comment.