Fixed a sorting problem in gl_account_types_list
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Mar 2010 15:16:41 +0000 (15:16 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Mar 2010 15:16:41 +0000 (15:16 +0000)
CHANGELOG.txt
includes/ui/ui_lists.inc

index 76b202f0ad8cd5f471dd789a8347e751eba7f3e3..c2f41dd3a49a67bff6869c14e159b0048ec9f75f 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+26-Mar-2010 Joe Hunt
+# Fixed a sorting problem in gl_account_types_list
+$ /includes/ui/ui_lists.inc
+
 24-Mar-2010 Janusz Dobrowolski/Joe Hunt
 # Fixed problem with multiply zeros a value of option in list selectors
 # Parse error in ui_list.inc. Fix in other files.
index 8d905f635b70dd266224f8c41c71c3864ee5e25a..e923c2eeb6476a3ab7703910be6d8a0a14abd54d 100644 (file)
@@ -1539,7 +1539,7 @@ function gl_account_types_list($name, $selected_id=null, $all_option=false, $all
 
        return combo_input($name, $selected_id, $sql, 'id', 'name',
        array(
-               'order' => 'class_id', 'id',
+               'order' => array('class_id', 'id', 'parent'),
                'spec_option' =>$all_option,
                'spec_id' => $all_items
        ) );