[-] BO : BugFix : #PSCFV-2844 : Problem in image associated to shop (AdminImportController)
This commit is contained in:
@@ -1215,6 +1215,16 @@ class AdminImportControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$shops = array();
|
$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 both failed, mysql error
|
||||||
if (!$res)
|
if (!$res)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user