From b7fa3b9b43bce1bae3d7fcdc76775cc84b83433d Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- members/memberentry.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index b48975ab6d..0b05bb1682 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.39.5