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:
Andrés Maldonado 2025-03-04 17:28:27 +01:00
parent cd21d385d6
commit dd7189b1d0

View file

@ -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;
}