Bugzilla – Attachment 142676 Details for
Bug 31976
Incorrect default category selected by authorized values page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31976: Incorrect default category selected by authorized values page
Bug-31976-Incorrect-default-category-selected-by-a.patch (text/plain), 1.53 KB, created by
Owen Leonard
on 2022-10-26 16:06:27 UTC
(
hide
)
Description:
Bug 31976: Incorrect default category selected by authorized values page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-10-26 16:06:27 UTC
Size:
1.53 KB
patch
obsolete
>From 0d8eac4f9c434657faa86ef3f66baef43d71e351 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. >--- > 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 dd8339b568..2130e86819 100755 >--- a/admin/authorised_values.pl >+++ b/admin/authorised_values.pl >@@ -222,7 +222,7 @@ if ( $op eq 'list' ) { > { order_by => ['category_name'] } > )->get_column('category_name'); > >- $searchfield ||= $category_names[0]; >+ $searchfield ||= ""; > > my @avs_by_category = Koha::AuthorisedValues->new->search( { category => $searchfield } )->as_list; > my @loop_data = (); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31976
:
142676
|
142677
|
142682