From c95f5c17a6b1e41be28819f79ebb0e6fa8f015e8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Jul 2018 18:24:50 -0300 Subject: [PATCH] Bug 21085: Fix add/edit of patrons when HouseboundModule is set This script takes all the parameters then set it to create/edit the patron. We must list housebound_chooser and housebound_deliverer as not part of patron's attributes Test plan: - Enable HouseboundModule - Create a patron => When you save, if the patch is not applied, you will get: No property housebound_deliverer for Koha::Patron - Edit a patron => When you save, if the patch is not applied, you will get: Patron creation failed! - DBIx::Class::Row::store_column(): No such column 'housebound_chooser' on Koha::Schema::Result::Borrower at /home/vagrant/kohaclone/Koha/Object.pm line 75 Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- members/memberentry.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 7f48bfdcd8..e5090b2f6e 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -223,7 +223,8 @@ if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) qr/^\d+-DAYS/, qr/^patron_attr_/, qr/^csrf_token$/, - qr/^add_debarment$/, qr/^debarred_expiration$/ # We already dealt with debarments previously + qr/^add_debarment$/, qr/^debarred_expiration$/, # We already dealt with debarments previously + qr/^housebound_chooser$/, qr/^housebound_deliverer$/, ); for my $regexp (@keys_to_delete) { for (keys %newdata) { -- 2.39.5