From 6bcd3c9d78c16fd8ec7be0af30bde86cc6cf034e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Jan 2022 15:30:17 +0100 Subject: [PATCH] Bug 29940: Don't surround value by quote Content-Type: text/plain; charset=utf-8 Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 4 ++-- opac/opac-search.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index 3135afd03b..eb1a17c9a1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -521,9 +521,9 @@ $(document).ready(function() { ]; Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/'}); [% IF ( expanded_options ) %] - Cookies.set("search_path_code", JSON.stringify('exs'), { path: '/'}); + Cookies.set("search_path_code", 'exs', { path: '/'}); [% ELSE %] - Cookies.set("search_path_code", JSON.stringify('ads'), { path: '/'}); + Cookies.set("search_path_code", 'ads', { path: '/'}); [% END %] }); diff --git a/opac/opac-search.pl b/opac/opac-search.pl index b74fc0b562..230cc266e9 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -205,10 +205,10 @@ if ($cgi->param("returntosearch")) { } if ($cgi->cookie("search_path_code")) { my $pathcode = $cgi->cookie("search_path_code"); - if ($pathcode eq '"ads"') { + if ($pathcode eq 'ads') { $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1'); } - elsif ($pathcode eq '"exs"') { + elsif ($pathcode eq 'exs') { $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1'); } else { -- 2.20.1