Bugzilla – Attachment 143496 Details for
Bug 31271
"Edit search" always resets search options to keyword
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31271: Preselect previous search index
Bug-31271-Preselect-previous-search-index.patch (text/plain), 1.69 KB, created by
Katrin Fischer
on 2022-11-09 12:24:01 UTC
(
hide
)
Description:
Bug 31271: Preselect previous search index
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-11-09 12:24:01 UTC
Size:
1.69 KB
patch
obsolete
>From 192ffc7600d3afd4485cd990d68f1815ff0f867f Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 3 Nov 2022 12:29:59 +0000 >Subject: [PATCH] Bug 31271: Preselect previous search index > >This patch passes the constructed value of the preselect to search_indexes.inc > >To test: >1 - Perform an advanced search, making sure to select different indexes >2 - Click 'Edit search' on results page >3 - Confirm index selections are preselected >4 - Enable IntranetCatalogSearchPulldown >5 - Do a search form the top bar using an index >6 - Confirm 'Edit search' correctly popluates the chosen index > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >index 52b46a764a..efabb12bdf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >@@ -170,7 +170,7 @@ > <div> > [% END %] > [% SET preselect = 'ms_' _ indexes.${loop.index}.replace(',','comma') %] >- [% INCLUDE 'search_indexes.inc' %] >+ [% INCLUDE 'search_indexes.inc' ${preselect} = 1 %] > <input type="text" size="30" name="q" title="Enter search terms" value="[% query | html %]" /> > [% IF ( expanded_options ) %] > [% IF ( loop.last ) %] >-- >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 31271
:
143086
|
143139
| 143496