Fix: sort $aux_account after adding all items
Currently, some items are added to $aux_account, then the array is sorted, then more items are added. In the end, the list visible in the UI is not sorted.
This commit is contained in:
parent
cd21d385d6
commit
dd7189b1d0
1 changed files with 2 additions and 2 deletions
|
|
@ -502,8 +502,6 @@ class FormAccounting extends Form
|
|||
return -1;
|
||||
}
|
||||
|
||||
ksort($aux_account);
|
||||
|
||||
$this->db->free($resql);
|
||||
|
||||
// Auxiliary user account
|
||||
|
|
@ -526,6 +524,8 @@ class FormAccounting extends Form
|
|||
}
|
||||
$this->db->free($resql);
|
||||
|
||||
ksort($aux_account);
|
||||
|
||||
if ($usecache) {
|
||||
$this->options_cache[$usecache] = $aux_account;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue