Skip to content

Commit

Permalink
also fix bad insert sql command
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Battarel committed Jul 18, 2019
1 parent 32bc8a5 commit 5daf031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/fourn/class/fournisseur.product.class.php
Expand Up @@ -430,8 +430,8 @@ public function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn
$sql .= " " . $newnpr . ",";
$sql .= $conf->entity . ",";
$sql .= $delivery_time_days . ",";
$sql .= (empty($supplier_reputation) ? 'NULL' : "'" . $this->db->escape($supplier_reputation) . "'");
$sql .= (empty($barcode) ? 'NULL' : "'" . $this->db->escape($barcode) . "'");
$sql .= (empty($supplier_reputation) ? 'NULL' : "'" . $this->db->escape($supplier_reputation) . "'") . ",";
$sql .= (empty($barcode) ? 'NULL' : "'" . $this->db->escape($barcode) . "'") . ",";
$sql .= (empty($fk_barcode_type) ? 'NULL' : "'" . $this->db->escape($fk_barcode_type) . "'");
$sql .= ")";

Expand Down

0 comments on commit 5daf031

Please sign in to comment.