Bugzilla – Attachment 109624 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.72 KB, created by
Nick Clemens (kidclamp)
on 2020-09-03 13:21:48 UTC
(
hide
)
Description:
Bug 23475: Make cookie name more explicit
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-09-03 13:21:48 UTC
Size:
1.72 KB
patch
obsolete
>From 1ea81291da9ba4ddee489472995ccd1e64e15511 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 > >--- > 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 8b1ccfa974..2f6bed3f24 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -116,8 +116,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 a0b064dfb2..6c2108c762 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -324,6 +324,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