// 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:
tDidierjean
2012-01-03 13:40:50 +00:00
parent 25818d2c37
commit 4017f3f60b
5 changed files with 32 additions and 6 deletions
@@ -79,6 +79,7 @@ class AdminAttributeGeneratorControllerCore extends AdminController
public function postProcess()
{
$this->product = new Product((int)Tools::getValue('id_product'));
$this->product->loadStockData();
if (isset($_POST['generate']))
{