[-] BO : Fix bug #PSCFV-10638, Admin Import by reference moves products to home category

This commit is contained in:
gRoussac
2013-10-23 01:41:05 +02:00
parent feca06417f
commit ae63336a37
+1 -1
View File
@@ -1137,7 +1137,7 @@ class AdminImportControllerCore extends AdminController
else
$product = new Product();
if (array_key_exists('id', $info) && (int)$info['id'] && Product::existsInDatabase((int)$info['id'], 'product'))
if (isset($product->id) && $product->id && Product::existsInDatabase((int)$product->id, 'product'))
{
$product->loadStockData();
$category_data = Product::getProductCategories((int)$product->id);