FIX fournrprice log for insert

This commit is contained in:
Christophe Battarel 2019-07-18 11:05:51 +02:00
parent f44182c89f
commit 32bc8a5faf

View File

@ -439,7 +439,7 @@ class ProductFournisseur extends Product
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql) { if ($resql) {
$idinserted = $this->db->last_insert_id(MAIN_DB_PREFIX . "product_fournisseur_price"); $this->product_fourn_price_id = $this->db->last_insert_id(MAIN_DB_PREFIX . "product_fournisseur_price");
} }
else { else {
$error++; $error++;
@ -462,7 +462,7 @@ class ProductFournisseur extends Product
if (empty($error)) { if (empty($error)) {
$this->db->commit(); $this->db->commit();
return $idinserted; return $this->product_fourn_price_id;
} else { } else {
$this->db->rollback(); $this->db->rollback();
return -1; return -1;