Bugzilla – Attachment 131839 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), 2.07 KB, created by
Marcel de Rooy
on 2022-03-17 12:53:11 UTC
(
hide
)
Description:
Bug 29940: Don't surround value by quote
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-03-17 12:53:11 UTC
Size:
2.07 KB
patch
obsolete
>From 6bcd3c9d78c16fd8ec7be0af30bde86cc6cf034e 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 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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
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