Bugzilla – Attachment 91156 Details for
Bug 23248
opac-ISBDdetail.pl dies on invalid biblionumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23248: Avoid opac-ISBDdetail.pl breaking on invalid biblionumber
Bug-23248-Avoid-opac-ISBDdetailpl-breaking-on-inva.patch (text/plain), 926 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2019-07-01 18:52:31 UTC
(
hide
)
Description:
Bug 23248: Avoid opac-ISBDdetail.pl breaking on invalid biblionumber
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-07-01 18:52:31 UTC
Size:
926 bytes
patch
obsolete
>From 6872ccaa32a163e973c6cd4eb59bee408f85c25e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 1 Jul 2019 15:52:02 -0300 >Subject: [PATCH] Bug 23248: Avoid opac-ISBDdetail.pl breaking on invalid > biblionumber > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > opac/opac-ISBDdetail.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl >index e4a0b3fcad..4305d8c483 100755 >--- a/opac/opac-ISBDdetail.pl >+++ b/opac/opac-ISBDdetail.pl >@@ -76,8 +76,12 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > } > ); > >- > my $biblio = Koha::Biblios->find( $biblionumber, { prefetch => [ 'metadata', 'items' ] } ); >+unless ( $biblio ) { >+ print $query->redirect("/cgi-bin/koha/errors/404.pl"); >+ exit; >+} >+ > my $patron = Koha::Patrons->find($loggedinuser); > > my $opachiddenitems_rules; >-- >2.22.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 23248
:
91156
|
91157
|
91293
|
91311
|
91312