Bugzilla – Attachment 76916 Details for
Bug 20287
Move AddMember and ModMember to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20287: Replace ModMember in patrons import
Bug-20287-Replace-ModMember-in-patrons-import.patch (text/plain), 1.23 KB, created by
Jonathan Druart
on 2018-07-12 18:50:17 UTC
(
hide
)
Description:
Bug 20287: Replace ModMember in patrons import
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-12 18:50:17 UTC
Size:
1.23 KB
patch
obsolete
>From d4f9a31d228cac459997e4c5a640b3b09862f73b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 23 Feb 2018 13:02:29 -0300 >Subject: [PATCH] Bug 20287: Replace ModMember in patrons import > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Patrons/Import.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm >index e9c1f80ddb..1adb32da5c 100644 >--- a/Koha/Patrons/Import.pm >+++ b/Koha/Patrons/Import.pm >@@ -241,12 +241,15 @@ sub import_patrons { > } > } > >- unless ( ModMember(%borrower) ) { >+ my $patron = Koha::Patrons->find( $borrowernumber ); >+ eval { $patron->set(\%borrower)->store }; >+ if ( $@ ) { > $invalid++; > > push( > @errors, > { >+ # TODO We can raise a better error > name => 'lastinvalid', > value => $borrower{'surname'} . ' / ' . $borrowernumber > } >-- >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 20287
:
73436
|
76901
|
76902
|
76903
|
76904
|
76905
|
76906
|
76907
|
76908
|
76909
|
76910
|
76911
|
76912
|
76913
|
76914
|
76915
| 76916 |
76917
|
76918
|
76919
|
76920
|
76921
|
76922
|
76923
|
76924
|
76927
|
77221