Bugzilla – Attachment 111339 Details for
Bug 23475
Search context is lost when simple search leads to a single record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23475: Make cookie name more explicit
Bug-23475-Make-cookie-name-more-explicit.patch (text/plain), 1.79 KB, created by
ByWater Sandboxes
on 2020-10-07 15:16:07 UTC
(
hide
)
Description:
Bug 23475: Make cookie name more explicit
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-10-07 15:16:07 UTC
Size:
1.79 KB
patch
obsolete
>From e703a8672fae15c632b83855c6a5a2541b4737c1 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 3 Sep 2020 13:21:26 +0000 >Subject: [PATCH] Bug 23475: Make cookie name more explicit > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> >--- > catalogue/detail.pl | 4 ++-- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index 8d17276bf2..0962fc1ca3 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -117,8 +117,8 @@ eval { $biblio->metadata->record }; > $template->param( decoding_error => $@ ); > > if( $query->param('found1') ){ >- if($query->cookie("pulldown_selection")){ >- my $ms = "ms_". Encode::decode_utf8( uri_unescape( $query->cookie("pulldown_selection") ) ); >+ if($query->cookie("cat_search_pulldown_selection")){ >+ my $ms = "ms_". Encode::decode_utf8( uri_unescape( $query->cookie("cat_search_pulldown_selection") ) ); > $template->param( $ms => 1); > } > if($query->cookie("searchbox_value")){ >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index a8b234178d..e573d6416d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -328,6 +328,6 @@ function resetSearchContext() { > > function saveOrClearSimpleSearchParams() { > // Simple masthead search - pass value for display on details page >- $.cookie('pulldown_selection', $("#cat-search-block select.advsearch").val() ); >+ $.cookie('cat_search_pulldown_selection', $("#cat-search-block select.advsearch").val() ); > $.cookie('searchbox_value', $("#cat-search-block #search-form").val() ); > } >-- >2.11.0
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 23475
:
92357
|
93558
|
93562
|
108124
|
109624
|
111325
|
111338
|
111339
|
111340
|
111798
|
111799
|
111800
|
112697
|
112714
|
112971
|
113744
|
113784
|
113904
|
114055
|
114056