// optimization to Product constructor (stock data is not loaded by default)

This commit is contained in:
tDidierjean committed 2012-01-03 13:40:50 +00:00
1 parent 4970ab5659
commit dc6488f512
5 files changed
+32 -6

No files matched your search

@@ -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;