Bug 32127: Sort by description in Koha::Template::Plugin::Categories
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 7 Nov 2022 21:42:49 +0000 (11:42 -1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Apr 2023 14:35:23 +0000 (11:35 -0300)
commit4f37c5bc7710619f297c356a7b19aa1767de7071
tree0dc6ca80d88568f7c92eb7d7f734bcffda422cc4
parentdae97fd2b70da860cced08e572a402ce477b5285
Bug 32127: Sort by description in Koha::Template::Plugin::Categories

Like in Koha::Template::Plugin::Branches, methods in
Koha::Template::Plugin::Categories must return categories sorted by
description.

Test plan :
1) Create a new patron category with code ZZZ and description AAAAAA
2) Go to patron search /cgi-bin/koha/members/members-home.pl
3) Look at filter by category :
=> Without patch the value AAAAAA is last
=> With patch the value AAAAAA is first
4) Click on 'New patron'
=> Without patch the value AAAAAA is last
=> With patch the value AAAAAA is first

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Template/Plugin/Categories.pm