Bugzilla – Attachment 77094 Details for
Bug 21085
Can't edit patrons with housebound module active
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21085: Fix add/edit of patrons when HouseboundModule is set
Bug-21085-Fix-addedit-of-patrons-when-HouseboundMo.patch (text/plain), 1.59 KB, created by
Jonathan Druart
on 2018-07-18 21:28:41 UTC
(
hide
)
Description:
Bug 21085: Fix add/edit of patrons when HouseboundModule is set
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-18 21:28:41 UTC
Size:
1.59 KB
patch
obsolete
>From 361a30225becb92a4291db1eda68165c3b823898 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 >--- > 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.11.0
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 21085
:
77094
|
77097
|
77102