From f53a48e4ffd3f252f800f23539672ee6976304e0 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 Signed-off-by: Marcel de Rooy Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- 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 24edcc652c..cd21067de1 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 8d5fe07bc0..6f01fc117a 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.39.5