change int country to varchar
This commit is contained in:
parent
5e01b9492e
commit
e4a9771a82
@ -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).'
|
||||
');
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user