From 0bbdc8a47bc97b09ce36faadced9e3841fb65dbc Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 31 Jan 2012 08:17:24 +0000 Subject: [PATCH] // Fix bug with product ordering by manufaturer name on the function Tools::getProductOrder git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12821 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tools.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Tools.php b/classes/Tools.php index 206b2ccc5..c0c09c52f 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1961,7 +1961,10 @@ FileETag INode MTime Size elseif ($value == 'name') $orderByPrefix = 'pl.'; elseif ($value == 'manufacturer_name') + { $orderByPrefix = 'm.'; + $value = 'name'; + } elseif ($value == 'position' || empty($value)) $orderByPrefix = 'cp.'; }