From f567b36d0fe3296144ee16339075f81e9eeaf822 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 31 Jan 2012 08:30:49 +0000 Subject: [PATCH] // Fix bug with product ordering by manufaturer name on the function Tools::getProductsOrder git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12824 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index c0c09c52f..333800efb 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1960,7 +1960,7 @@ FileETag INode MTime Size $orderByPrefix = 'p.'; elseif ($value == 'name') $orderByPrefix = 'pl.'; - elseif ($value == 'manufacturer_name') + elseif ($value == 'manufacturer_name' && $prefix) { $orderByPrefix = 'm.'; $value = 'name';