// optimization to Product constructor (stock data is not loaded by default)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12061 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -924,6 +924,7 @@ class AdminImportControllerCore extends AdminController
|
||||
if (array_key_exists('id', $info) && (int)$info['id'] && Product::existsInDatabase((int)$info['id'], 'product'))
|
||||
{
|
||||
$product = new Product((int)$info['id']);
|
||||
$product->loadStockData();
|
||||
$category_data = Product::getProductCategories((int)$product->id);
|
||||
foreach ($category_data as $tmp)
|
||||
$product->category[] = $tmp;
|
||||
|
||||
Reference in New Issue
Block a user