]> git.koha-community.org Git - koha.git/commit
Bug 29922: Make get_search_groups return results sorted by title
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Mon, 27 Jun 2022 15:18:05 +0000 (11:18 -0400)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 23 Aug 2022 19:32:30 +0000 (19:32 +0000)
commit73d5fd08f5d1c41c2fb332b5c376533dda0e5fd4
tree550a5e57997028cdc7ee17e3bcb74e4a6507efe4
parent9739eb738db4d0d58a9b4bd6b16468dc5086b97f
Bug 29922: Make get_search_groups return results sorted by title

get_search_groups from Koha/Library/Groups.pm returns library groups sorted by title.

Test plan:
1- Go to administration > library groups and create multiple library groups with different names (e.g. AGroup, BGroup, ÄGroup, etc.). Make sure to tick "Use for OPAC search groups" checkbox.
2- Go to advanced search in OPAC.
3- Under "Groups of librairies" , click the select button.
4- Notice that the library groups are not in alphabetical order.
5- Apply the patch.
6- Notice that the library groups are in alphabetical order.
7- Run `prove t/db_dependent/LibraryGroups.t` and all test should pass.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d86d949551201bfc7745f65fbb8428abac324cb4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Library/Groups.pm