From 1ea81291da9ba4ddee489472995ccd1e64e15511 Mon Sep 17 00:00:00 2001 From: Nick Clemens 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