diff --git a/adm/tabs/AdminImport.php b/adm/tabs/AdminImport.php index 30fbf0ba..a4e8773f 100755 --- a/adm/tabs/AdminImport.php +++ b/adm/tabs/AdminImport.php @@ -792,10 +792,10 @@ class AdminImport extends AdminTab VALUES ( '.(int) $product->id.', "'.pSQL($product->nc8).'", - '.(int) $product->origin_country_id.' + '. pSQL($product->origin_country_id).' ) ON DUPLICATE KEY UPDATE `nc8` = "'.pSQL($product->nc8).'", - `id_country` = '.(int) $product->origin_country_id.' + `id_country` = '.pSQL($product->origin_country_id).' '); } diff --git a/adm/tabs/AdminProducts.php b/adm/tabs/AdminProducts.php index f3acd20c..2c807ccf 100755 --- a/adm/tabs/AdminProducts.php +++ b/adm/tabs/AdminProducts.php @@ -1325,10 +1325,10 @@ class AdminProducts extends AdminTab VALUES ( '.(int) $object->id.', "'.pSQL(Tools::getValue('nc8')).'", - '.(int) Tools::getValue('id_country').' + '.pSQL(Tools::getValue('id_country')).' ) ON DUPLICATE KEY UPDATE `nc8` = "'.pSQL(Tools::getValue('nc8')).'", - `id_country` = '.(int) Tools::getValue('id_country').' + `id_country` = '.pSQL(Tools::getValue('id_country')).' '); if (Validate::isLoadedObject($object))