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> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitbcaaffa838) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit099d25a44a) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
c8eb02e5c8
commit
b6b485a0bf
|
|
@ -528,6 +528,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue