From 5d98937291fd2c8272683e5d4aaa577e66041c63 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 Signed-off-by: Sally Signed-off-by: Katrin Fischer --- 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 d22bea4266..c2e3beb66a 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