From 45d12552725feb16faea7a93eb515f51f49615e4 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 Signed-off-by: Jonathan Druart --- 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 052fafb7a5e..8a399de8d9d 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 8d5fe07bc00..6f01fc117a3 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.25.1