[-] BO: Fix #PSCFV-7377 customizable fields on product duplication

This commit is contained in:
Rémi Gaillard
2013-01-23 16:07:53 +01:00
parent a48d2668d3
commit c8ecf3d604
5 changed files with 6 additions and 6 deletions
@@ -79,7 +79,7 @@ function create_multistore()
// Stock conversion
$sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`)
VALUES (SELECT `p.id_product`, 0, 1, 1, `p.quantity` FROM `'._DB_PREFIX_.'.product` p);';
VALUES (SELECT p.`id_product`, 0, 1, 1, p.`quantity` FROM `'._DB_PREFIX_.'.product` p);';
$res &= Db::getInstance()->execute($sql);
$sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`)