PRODUCT_PRICE_SUPPLIER_NO_LOG test inverted

if PRODUCT_PRICE_SUPPLIER_NO_LOG is empty, no log is stored
if PRODUCT_PRICE_SUPPLIER_NO_LOG is not empty log is stored
they are inversion
@eldy maybe add more field in this table
This commit is contained in:
BENKE Charlie 2017-03-26 19:13:10 +02:00 committed by GitHub
parent 9f0328ab7f
commit 3299e5f889

View File

@ -310,7 +310,7 @@ class ProductFournisseur extends Product
$error++;
}
if (! $error && ! empty($conf->global->PRODUCT_PRICE_SUPPLIER_NO_LOG)) {
if (! $error && empty($conf->global->PRODUCT_PRICE_SUPPLIER_NO_LOG)) {
// Add record into log table
$sql = "INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price_log(";
$sql .= "datec, fk_product_fournisseur,fk_user,price,quantity)";