[-] BO : fix #PSCFV-4764

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17879 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-10-16 13:57:17 +00:00
parent a7fa159269
commit 310625d1f2
+6 -1
View File
@@ -1055,7 +1055,12 @@ class AdminImportControllerCore extends AdminController
$product->id_shop_default = (int)Context::getContext()->shop->id;
// link product to shops
$product->id_shop_list = explode($this->multiple_value_separator, $product->shop);
$product->id_shop_list = array();
foreach (explode($this->multiple_value_separator, $product->shop) as $shop)
if (!is_numeric($shop))
$product->id_shop_list[] = Shop::getIdByName($shop);
else
$product->id_shop_list[] = $shop;
if ((int)$product->id_tax_rules_group != 0)
{