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> (cherry picked from commit4f37c5bc77) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> (cherry picked from commit79e0674da6) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
0783245882
commit
e773f7620e
|
|
@ -25,12 +25,12 @@ use Koha::Patron::Categories;
|
|||
|
||||
sub all {
|
||||
my ( $self, $params ) = @_;
|
||||
return Koha::Patron::Categories->search($params);
|
||||
return Koha::Patron::Categories->search($params, { order_by => [ 'description' ] } );
|
||||
}
|
||||
|
||||
sub limited {
|
||||
my ( $self, $params ) = @_;
|
||||
return Koha::Patron::Categories->search_with_library_limits($params);
|
||||
return Koha::Patron::Categories->search_with_library_limits($params, { order_by => [ 'description' ] } );
|
||||
}
|
||||
|
||||
sub GetName {
|
||||
|
|
|
|||
Loading…
Reference in New Issue