Bug 10535: by default sort funds by name
In parcels.pl, and other acquisition pages, the funds are not sorted by name in combo-box. With a great number of funds, it is difficult to find one. This patch adds a default value to $orderby arg of C4::Budgets::GetBudgets. Test plan : - Create a new fund with a name beginning with 'z' and set you as owner. - Create a new fund with a name beginning with 'a' and set you as owner. - Go to a vendor and click "Receive shipments" - Look at fund combobox => Funds are sorted by name Signed-off-by: Silvia Simonetti <s.simonetti@cineca.it> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script. When testing make sure your funds would sort the other way around when sorting by code instead of description. Signed-off-by: Galen Charlton <gmc@esilibrary.com> (cherry picked from commitaa6cdb60a9) Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> (cherry picked from commitf56768adba) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> (cherry picked from commitf56768adba)
This commit is contained in:
parent
e1b677188a
commit
58f7b60bf3
|
|
@ -673,7 +673,8 @@ gets all budgets
|
|||
|
||||
# -------------------------------------------------------------------
|
||||
sub GetBudgets {
|
||||
my ($filters,$orderby) = @_;
|
||||
my $filters = shift;
|
||||
my $orderby = shift || 'budget_name';
|
||||
return SearchInTable("aqbudgets",$filters, $orderby, undef,undef, undef, "wide");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue