Bug 7831 : Sort budgets for selection in new order
The select budget dropdown list should be presented in an ordered fashion. To achieve this sort the budget array by the visible text. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
0a476f8231
commit
8334e1a18e
|
|
@ -276,6 +276,8 @@ foreach my $r (@{$budgets}) {
|
|||
};
|
||||
}
|
||||
|
||||
@{$budget_loop} =
|
||||
sort { uc( $a->{b_txt}) cmp uc( $b->{b_txt}) } @{$budget_loop};
|
||||
|
||||
if ($close) {
|
||||
$budget_id = $data->{'budget_id'};
|
||||
|
|
|
|||
Loading…
Reference in New Issue