Bugzilla – Attachment 77366 Details for
Bug 21136
Error "No property select_city for Koha::Patron" when saving patron record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21136: Fix add/edit patron when cities are defined
Bug-21136-Fix-addedit-patron-when-cities-are-defin.patch (text/plain), 1.27 KB, created by
Owen Leonard
on 2018-08-01 13:34:30 UTC
(
hide
)
Description:
Bug 21136: Fix add/edit patron when cities are defined
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-08-01 13:34:30 UTC
Size:
1.27 KB
patch
obsolete
>From e37943ab9fde119d811521067e2c1c9d0783300f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 1 Aug 2018 09:59:01 -0300 >Subject: [PATCH] Bug 21136: Fix add/edit patron when cities are defined > >Same as bug 21085. > >When cities are defined, there is a select with name="select_city" added >to the DOM and its value will be passed to memberentry.pl >We must remove it from the attribute list before creating the >Koha::Patron object > >No property select_city for Koha::Patron at >/usr/share/perl5/Exception/Class/Base.pm line 73 > >Test plan: >Define cities >Add or edit a patron, save > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > members/memberentry.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index b48975a..0b05bb1 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -225,6 +225,7 @@ if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) > qr/^csrf_token$/, > qr/^add_debarment$/, qr/^debarred_expiration$/, # We already dealt with debarments previously > qr/^housebound_chooser$/, qr/^housebound_deliverer$/, >+ qr/^select_city$/, > ); > for my $regexp (@keys_to_delete) { > for (keys %newdata) { >-- >2.1.4
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 21136
:
77362
|
77366
|
77374