Bugzilla – Attachment 143352 Details for
Bug 32119
Cannot add new guarantee
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32119: (bug 31422 follow-up) Fix add guarantee
Bug-32119-bug-31422-follow-up-Fix-add-guarantee.patch (text/plain), 1.31 KB, created by
Owen Leonard
on 2022-11-07 12:20:28 UTC
(
hide
)
Description:
Bug 32119: (bug 31422 follow-up) Fix add guarantee
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-11-07 12:20:28 UTC
Size:
1.31 KB
patch
obsolete
>From 44663461d364b97e5b54a5b253cb260b930aed7f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 7 Nov 2022 13:11:31 +0100 >Subject: [PATCH] Bug 32119: (bug 31422 follow-up) Fix add guarantee > >Can't call method "id" on an undefined value at /kohadevbox/koha/members/memberentry.pl line 662 eval {...} at /kohadevbox/koha/members/memberentry.pl line 932 > >To recreate: >go to a patron detail view, click "add guarantee" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > members/memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index ca43a1eede..d9761e435c 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -178,7 +178,7 @@ if ( $op eq 'modify' or $op eq 'save' or $op eq 'duplicate' ) { > } > > my $categorycode = $input->param('categorycode') || $borrower_data->{'categorycode'}; >-my $category = Koha::Patron::Categories->find($categorycode); >+my $category = $categorycode ? Koha::Patron::Categories->find($categorycode) : $guarantor->category; > $template->param( patron_category => $category ); > > # if a add or modify is requested => check validity of data. >-- >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 32119
:
143351
|
143352
|
143364
|
143366
|
143371