From ac29a13664f4f614871cb3bd317703884f0710cb Mon Sep 17 00:00:00 2001 From: dMetzger Date: Thu, 23 Aug 2012 15:24:20 +0000 Subject: [PATCH] // Fixed alias git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16974 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCategoriesController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 11ad2b8e9..88db10909 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -201,7 +201,10 @@ class AdminCategoriesControllerCore extends AdminController public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = null, $id_lang_shop = false) { - parent::getList($id_lang, 'sa.position', $order_way, $start, $limit, Context::getContext()->shop->id); + $alias = 'a'; + if (Shop::isFeatureActive()) + $alias = 'sa'; + parent::getList($id_lang, $alias.'.position', $order_way, $start, $limit, Context::getContext()->shop->id); // Check each row to see if there are combinations and get the correct action in consequence $nb_items = count($this->_list);