Bugzilla – Attachment 162119 Details for
Bug 36072
Can request articles even if ArticleRequests is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36072: opac-request-article should check syspref
Bug-36072-opac-request-article-should-check-syspre.patch (text/plain), 1.07 KB, created by
Martin Renvoize (ashimema)
on 2024-02-13 16:35:29 UTC
(
hide
)
Description:
Bug 36072: opac-request-article should check syspref
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-02-13 16:35:29 UTC
Size:
1.07 KB
patch
obsolete
>From fbf01a6068be00a1f902e3f118b7c880ed0a04dd Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 13 Feb 2024 12:36:44 +0000 >Subject: [PATCH] Bug 36072: opac-request-article should check syspref > >Note: This is handled now just like opac-reserve. > >Test plan: >Disable ArticleRequests and hit the page. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > opac/opac-request-article.pl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/opac/opac-request-article.pl b/opac/opac-request-article.pl >index 88e2a228abf..98fbfb2ece2 100755 >--- a/opac/opac-request-article.pl >+++ b/opac/opac-request-article.pl >@@ -33,6 +33,12 @@ use Try::Tiny; > > my $cgi = CGI->new; > >+# If ArticleRequests is disabled, leave immediately >+if ( !C4::Context->preference('ArticleRequests') ) { >+ print $cgi->redirect("/cgi-bin/koha/errors/404.pl"); >+ exit; >+} >+ > my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > { > template_name => "opac-request-article.tt", >-- >2.43.0
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 36072
:
162106
| 162119