Bugzilla – Attachment 163275 Details for
Bug 36334
Unnecessary JS code in member.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36334: (follow-up) Restore selection of previous values in sidebar
Bug-36334-follow-up-Restore-selection-of-previous-.patch (text/plain), 3.02 KB, created by
Nick Clemens (kidclamp)
on 2024-03-15 18:22:29 UTC
(
hide
)
Description:
Bug 36334: (follow-up) Restore selection of previous values in sidebar
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-03-15 18:22:29 UTC
Size:
3.02 KB
patch
obsolete
>From 2a7f4830f0ccc75b284c98a7a69b684d6979a391 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 15 Mar 2024 18:17:29 +0000 >Subject: [PATCH] Bug 36334: (follow-up) Restore selection of previous values > in sidebar > >Before and after the first patch the values for category and library were not populated > >To test: >1 - With nothing applied search in the top bar, clicking the 'settings' button >2 - Select a search field, search type, category, and library >3 - Perform search, note only search field and search type are populated >4 - Apply first path, repeat, same result >5 - Apply this patch, repeat >6 - Confirm all four fields now populate in sidebar > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/includes/patron-search.inc | 12 ++++++++++-- > 1 file changed, 10 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 c481838b213..a07f9ab0be1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -52,7 +52,11 @@ > <option value="">Any</option> > [% END %] > [% FOREACH l IN libraries %] >- <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> >+ [% IF (l.branchcode == branchcode_filter) %] >+ <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> >+ [% ELSE %] >+ <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> >+ [% END %] > [% END %] > </select> > </label> >@@ -64,7 +68,11 @@ > <select class="categorycode_filter"> > <option value="">Any</option> > [% FOREACH category IN Categories.limited.unblessed %] >- <option value="[% category.categorycode | html %]">[% category.description | html %]</option> >+ [% IF ( category.categorycode == categorycode_filter ) %] >+ <option value="[% category.categorycode | html %]" selected="selected">[% category.description | html %]</option> >+ [% ELSE %] >+ <option value="[% category.categorycode | html %]">[% category.description | html %]</option> >+ [% END %] > [% END %] > </select> > </label> >-- >2.30.2
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 36334
:
163249
|
163258
|
163268
|
163269
| 163275