[-] 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
This commit is contained in:
vChabot
2012-03-05 14:00:04 +00:00
parent 3186411f88
commit 66a8d25d2b
+10 -10
View File
@@ -45,22 +45,22 @@ class TaxRulesGroupCore extends ObjectModel
), ),
); );
protected $webserviceParameters = array( protected $webserviceParameters = array(
'objectsNodeName' => 'tax_rule_groups', 'objectsNodeName' => 'tax_rule_groups',
'objectNodeName' => 'tax_rule_group', 'objectNodeName' => 'tax_rule_group',
'fields' => array( 'fields' => array(
), ),
); );
protected static $_taxes = array(); protected static $_taxes = array();
public static function getTaxRulesGroups($only_active = true) public static function getTaxRulesGroups($only_active = true)
{ {
return Db::getInstance()->executeS(' return Db::getInstance()->executeS('
SELECT * SELECT *
FROM `'._DB_PREFIX_.'tax_rules_group` g' FROM `'._DB_PREFIX_.'tax_rules_group` g'
.($only_active ? ' WHERE g.`active` = 1' : '') .($only_active ? ' WHERE g.`active` = 1' : '').'
); ORDER BY name ASC');
} }
/** /**