Bugzilla – Attachment 19539 Details for
Bug 10535
by default sort funds by name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 10535 - by default sort funds by name
PASSED-QA-Bug-10535---by-default-sort-funds-by-nam.patch (text/plain), 1.47 KB, created by
Katrin Fischer
on 2013-07-11 06:10:28 UTC
(
hide
)
Description:
[PASSED QA] Bug 10535 - by default sort funds by name
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-07-11 06:10:28 UTC
Size:
1.47 KB
patch
obsolete
>From 1d3cba34616a7a6ac98ffba1c2f50c01b88f14e1 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 3 Jul 2013 14:24:23 +0200 >Subject: [PATCH] [PASSED QA] 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. >--- > C4/Budgets.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Budgets.pm b/C4/Budgets.pm >index 2c78284..a648773 100644 >--- a/C4/Budgets.pm >+++ b/C4/Budgets.pm >@@ -709,7 +709,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"); > } > >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10535
:
19365
|
19402
|
19539
|
19579
|
20563
|
20579