Bugzilla – Attachment 35281 Details for
Bug 12702
Suggestions still accessible in OPAC when deactivated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12702 - Suggestions still accessible in OPAC when deactivated
PASSED-QA-Bug-12702---Suggestions-still-accessible.patch (text/plain), 1.10 KB, created by
Katrin Fischer
on 2015-01-15 06:14:17 UTC
(
hide
)
Description:
[PASSED QA] Bug 12702 - Suggestions still accessible in OPAC when deactivated
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-01-15 06:14:17 UTC
Size:
1.10 KB
patch
obsolete
>From e47c1006e69d65071fbd6e8ec3a1e936f1fec196 Mon Sep 17 00:00:00 2001 >From: Thomas <tomsStudy@gmail.com> >Date: Tue, 13 Jan 2015 23:25:49 +0000 >Subject: [PATCH] [PASSED QA] Bug 12702 - Suggestions still accessible in OPAC > when deactivated > >Added check for suggestions turned off. If off user is redirected to 404 error. If patron suggestions are off guest sugestions will also redirect to 404 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > opac/opac-suggestions.pl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl >index 701e431..16aadf8 100755 >--- a/opac/opac-suggestions.pl >+++ b/opac/opac-suggestions.pl >@@ -45,6 +45,12 @@ if ($negcaptcha ) { > exit; > } > >+#If suggestions are turned off we redirect to 404 error. This will also redirect guest suggestions >+if ( ! C4::Context->preference('suggestion') ) { >+ print $input->redirect("/cgi-bin/koha/errors/404.pl"); >+ exit; >+} >+ > delete $$suggestion{$_} foreach qw<op suggestedbyme>; > $op = 'else' unless $op; > >-- >1.9.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 12702
:
35171
|
35175
| 35281