Bugzilla – Attachment 154296 Details for
Bug 26994
Display list of names in alphabetical order when using the Suggestion information filter in Suggestions management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26994: List names in alphabetical order in Suggestion filter
Bug-26994-List-names-in-alphabetical-order-in-Sugg.patch (text/plain), 1.32 KB, created by
ByWater Sandboxes
on 2023-08-04 19:47:45 UTC
(
hide
)
Description:
Bug 26994: List names in alphabetical order in Suggestion filter
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2023-08-04 19:47:45 UTC
Size:
1.32 KB
patch
obsolete
>From a65f7583ef86705cbe02aac3b7ce21f2f71155a1 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Wed, 26 Jul 2023 12:58:39 -0400 >Subject: [PATCH] Bug 26994: List names in alphabetical order in Suggestion > filter > >Display list of names in alphabetical order when using the Suggestion information filter in Suggestions management > >Test plan: >1. Add different purchase suggestions from various patron's names >2. Go to Acquisition > Suggestions >3. Click on the Suggestion information filters on the left-hand side >4. Use one of these drop-down menus: "Suggested by" or, "Managed by" or "Accepted by" >--> notice the list of names in menus, names aren't displayed from A to Z >5. Apply patch and refresh page >6. Redo step 4 >--> notice now it's sorted alphabetically > >Signed-off-by: Kelly <kelly@bywatersolutions.com> >--- > suggestion/suggestion.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl >index f85b4366ea..c75982ec4a 100755 >--- a/suggestion/suggestion.pl >+++ b/suggestion/suggestion.pl >@@ -517,6 +517,7 @@ foreach my $field ( qw(managedby acceptedby suggestedby budgetid) ) { > } grep { > $$_{'value'} > } @$values_list; >+ @codes_list = sort { $a->{desc} cmp $b->{desc} } @codes_list; > $hashlists{ lc($field) . "_loop" } = \@codes_list; > } > >-- >2.30.2
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 26994
:
153934
|
154296
|
156703