Bugzilla – Attachment 183224 Details for
Bug 40121
library and category not selected on the patron search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40121: Fix library and category filters on patron search
Bug-40121-Fix-library-and-category-filters-on-patr.patch (text/plain), 2.15 KB, created by
David Nind
on 2025-06-13 07:20:31 UTC
(
hide
)
Description:
Bug 40121: Fix library and category filters on patron search
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-06-13 07:20:31 UTC
Size:
2.15 KB
patch
obsolete
>From a14b59d4e884c8efd057591354a9ec864d625f0b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Jun 2025 16:41:50 +0200 >Subject: [PATCH] Bug 40121: Fix library and category filters on patron search > >Test plan: >Go to http://localhost:8081/cgi-bin/koha/members/members-home.pl >Select a value for Library and/or Category filters >Click "Search" >=> Without this patch the dropdown lists do not have the value selected >=> With this patch applied they have the correct values selected > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 85184bdc6a..9505b7c913 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -900,11 +900,11 @@ > [% SWITCH c %] > [% CASE 'branch' %] > let library_id = patron_search_form.find(".branchcode_filter").val() || ""; >- patrons_table.find('thead tr:eq(1) th[data-filter="libraries"] select').val(library_id); >+ patrons_table.find('thead tr:eq(1) th[data-filter="libraries"] select').val('^' + library_id + '$'); > table_dt.column([% loop.count - 1 %]).search(library_id ? '^'+library_id+'$' : ''); > [% CASE 'category' %] > let category_id = patron_search_form.find(".categorycode_filter").val() || ""; >- patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val(category_id.toLowerCase()); >+ patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val('^' + category_id.toLowerCase() + '$'); > table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); > [% END %] > [% END %] >-- >2.39.5
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 40121
:
183167
|
183168
|
183217
| 183224 |
183225