change int country to varchar

This commit is contained in:
Srv Bebeboutik 2016-03-31 12:05:30 +02:00
parent 5e01b9492e
commit e4a9771a82
2 changed files with 4 additions and 4 deletions

View File

@ -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).'
');
}

View File

@ -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))