[-] BO : BugFix : #PSCFV-2844 : Problem in image associated to shop (AdminImportController)

This commit is contained in:
vChabot
2012-06-27 08:04:15 +00:00
parent 7c18909e68
commit 16fef787e2
@@ -1215,6 +1215,16 @@ class AdminImportControllerCore extends AdminController
}
$shops = array();
$product_shop = explode(',', $product->shop);
foreach ($product_shop as $shop)
{
$shop = trim($shop);
if (!is_numeric($shop))
$shop = ShopGroup::getIdByName($shop);
$shops[] = $shop;
}
if (empty($shops))
$shops = Shop::getContextListShopID();
// If both failed, mysql error
if (!$res)
{