From 9bb71c3f591826b8f110ea7bc33c130bc183ad16 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 26 Oct 2022 15:52:18 +0000 Subject: [PATCH] Bug 31976: Incorrect default category selected by authorized values page This patch removes some obsolete code for selecting a default authorized value category to be shown when the user first arrives on the authorized values page. This has not been necessary since we switched to an interface which lists all categories. NOTE: This bug will not be reproducible if your first authorized value, alphabetically, has no values associated with it. For instance, if you delete all authorized values in the AR_CANCELLATION category. To test, apply the patch and go to Administration -> Authorized values. In the breadcrumbs menu you should see "Home -> Administration -> Authorized values." Clicking any of the authorized value categories in the list should take you to a view of that category's values. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 0ec29e5d4ecdf5dd3156b53320eac1250d065e3b) Signed-off-by: Lucas Gass (cherry picked from commit 0b0dcefd5aea5a6d7b551372557eb56ec6859aa8) Signed-off-by: Arthur Suzuki --- admin/authorised_values.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index f772a84be7..7b66281dcb 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -218,7 +218,7 @@ if ( $op eq 'list' ) { push( @category_list, $category->category_name ); } - $searchfield ||= $category_list[0]; + $searchfield ||= ""; my @avs_by_category = Koha::AuthorisedValues->new->search( { category => $searchfield } ); my @loop_data = (); -- 2.39.5