Bugzilla – Attachment 129891 Details for
Bug 29940
Phase out jquery.cookie.js in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29940: Don't surround value by quote
Bug-29940-Dont-surround-value-by-quote.patch (text/plain), 1.98 KB, created by
Jonathan Druart
on 2022-01-27 14:30:58 UTC
(
hide
)
Description:
Bug 29940: Don't surround value by quote
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-01-27 14:30:58 UTC
Size:
1.98 KB
patch
obsolete
>From 45d12552725feb16faea7a93eb515f51f49615e4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 27 Jan 2022 15:30:17 +0100 >Subject: [PATCH] Bug 29940: Don't surround value by quote > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29940
:
129749
|
129835
|
129890
|
129891
|
131838
|
131839