Bug 34920: Return sorted av_cats to be able to test
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
0cb91c3a77
commit
4cd81ed3ec
|
|
@ -36,8 +36,9 @@ sub list {
|
|||
my $c = shift->openapi->valid_input or return;
|
||||
|
||||
return try {
|
||||
my $authorised_value_categories_set = Koha::AuthorisedValueCategories->new;
|
||||
my $authorised_value_categories = $c->objects->search( $authorised_value_categories_set );
|
||||
my $authorised_value_categories_set =
|
||||
Koha::AuthorisedValueCategories->search( {}, { order_by => 'category_name' } );
|
||||
my $authorised_value_categories = $c->objects->search($authorised_value_categories_set);
|
||||
return $c->render( status => 200, openapi => $authorised_value_categories );
|
||||
}
|
||||
catch {
|
||||
|
|
|
|||
Loading…
Reference in New Issue