From 66a8d25d2bd3bda08616900277abb40d7f37c7c4 Mon Sep 17 00:00:00 2001 From: vChabot Date: Mon, 5 Mar 2012 14:00:04 +0000 Subject: [PATCH] [-] BO : BugFix : #PSTEST-952 : Tax rules group sorted by name ASC git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13840 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/tax/TaxRulesGroup.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/classes/tax/TaxRulesGroup.php b/classes/tax/TaxRulesGroup.php index f8161151f..8208d2cbd 100644 --- a/classes/tax/TaxRulesGroup.php +++ b/classes/tax/TaxRulesGroup.php @@ -45,22 +45,22 @@ class TaxRulesGroupCore extends ObjectModel ), ); - protected $webserviceParameters = array( + protected $webserviceParameters = array( 'objectsNodeName' => 'tax_rule_groups', 'objectNodeName' => 'tax_rule_group', - 'fields' => array( - ), - ); + 'fields' => array( + ), + ); - protected static $_taxes = array(); + protected static $_taxes = array(); public static function getTaxRulesGroups($only_active = true) { - return Db::getInstance()->executeS(' - SELECT * - FROM `'._DB_PREFIX_.'tax_rules_group` g' - .($only_active ? ' WHERE g.`active` = 1' : '') - ); + return Db::getInstance()->executeS(' + SELECT * + FROM `'._DB_PREFIX_.'tax_rules_group` g' + .($only_active ? ' WHERE g.`active` = 1' : '').' + ORDER BY name ASC'); } /**