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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16139 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-06-27 08:04:15 +00:00
parent 641d2b296b
commit 817c319620
@@ -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)
{