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