// CaregoryController : FixBug : Product list must be assigned to the template AFTER being calculated

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8912 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-09-30 07:22:42 +00:00
parent ddc6b504c8
commit aab66997da
+4 -3
View File
@@ -88,6 +88,10 @@ class CategoryControllerCore extends FrontController
else if (isset($this->context->customer->id_guest))
$this->context->smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts($this->context->customer->id_guest));
$this->assignScenes();
if ($this->category->id != 1)
$this->assignProductList();
$this->productSort();
$this->context->smarty->assign(array(
'category' => $this->category,
@@ -106,9 +110,6 @@ class CategoryControllerCore extends FrontController
'suppliers' => Supplier::getSuppliers()
));
$this->assignScenes();
if ($this->category->id != 1)
$this->assignProductList();
$this->setTemplate(_PS_THEME_DIR_.'category.tpl');
}