Bugzilla – Attachment 187199 Details for
Bug 40929
Can't call method "borrowernumber" on an undefined value at opac-modrequest.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40929: Add $hold test in opac-modrequest
Bug-40929-Add-hold-test-in-opac-modrequest.patch (text/plain), 1.00 KB, created by
Marcel de Rooy
on 2025-10-01 14:38:36 UTC
(
hide
)
Description:
Bug 40929: Add $hold test in opac-modrequest
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-10-01 14:38:36 UTC
Size:
1.00 KB
patch
obsolete
>From 5abc10062d18fed06294bac733d724a1815f8127 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 1 Oct 2025 16:34:38 +0200 >Subject: [PATCH] Bug 40929: Add $hold test in opac-modrequest >Content-Type: text/plain; charset=utf-8 > >Test plan: >Login at OPAC. >Pass an unexisting reserve_id in a opac-modrequest.pl URL. >Verify that you get a 403 redirect. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/opac-modrequest.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-modrequest.pl b/opac/opac-modrequest.pl >index de61d61a12..2cf6712685 100755 >--- a/opac/opac-modrequest.pl >+++ b/opac/opac-modrequest.pl >@@ -46,7 +46,7 @@ if ( $reserve_id && $borrowernumber ) { > > my $hold = Koha::Holds->find($reserve_id); > >- unless ( $hold->borrowernumber == $borrowernumber ) { >+ unless ( $hold && $hold->borrowernumber == $borrowernumber ) { > > # whatcha tryin to do? > print $query->redirect('/cgi-bin/koha/errors/403.pl'); >-- >2.39.5
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 40929
:
187199
|
187208