Bugzilla – Attachment 31497 Details for
Bug 12859
Patron import tool doesn't import extened attributes values any longer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12859 - Patron import tool doesn't import extened attributes values any longer
Bug-12859---Patron-import-tool-doesnt-import-exten.patch (text/plain), 1.86 KB, created by
Petter Goksøyr Åsen
on 2014-09-10 07:42:41 UTC
(
hide
)
Description:
Bug 12859 - Patron import tool doesn't import extened attributes values any longer
Filename:
MIME Type:
Creator:
Petter Goksøyr Åsen
Created:
2014-09-10 07:42:41 UTC
Size:
1.86 KB
patch
obsolete
>From 818496f19262eded75f2852521da189fe3f8dfec Mon Sep 17 00:00:00 2001 >From: Jacek Ablewicz <abl@biblos.pk.edu.pl> >Date: Tue, 2 Sep 2014 11:46:06 +0200 >Subject: [PATCH] Bug 12859 - Patron import tool doesn't import extened > attributes values any longer > >To reproduce: > >1/ define/set up extended pattron attribute in administration module, >2/ using "Tools -> Import patrons", try to import some sample patron >record[s], having some arbitrary (non-empty) value assigned in >'pattron_attributes' CSV column for attribute defined in step 1/, >3/ observe that extended attribute defined in step 1/ was not imported >(not added to the database), without any warnings. > >This patch restores a small code chunk which went AWOL somewhere around >commit b4158f2d2485c9e57bd7f14362b210732bef9d35. > >To test: > >1/ apply patch & retest, >3/ ensure that this issue is no longer reproductible, and there are no >apparent regressions of any kind, >4/ make sure that the ability to specify default value for extended >attributes added in bug Bug 12716 is still working as intended >(= follow up the test plan for bug 12716). > >Signed-off-by: Petter Goksoyr Asen <boutrosboutrosboutros@gmail.com> >Patch fixes import of extended patron attributes. >Step 1-3 in test plan confirmed. >--- > tools/import_borrowers.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl >index d99db2f..66d1485 100755 >--- a/tools/import_borrowers.pl >+++ b/tools/import_borrowers.pl >@@ -62,6 +62,9 @@ my (@errors, @feedback); > my $extended = C4::Context->preference('ExtendedPatronAttributes'); > my $set_messaging_prefs = C4::Context->preference('EnhancedMessagingPreferences'); > my @columnkeys = C4::Members::columns(); >+if ($extended) { >+ push @columnkeys, 'patron_attributes'; >+} > > my $input = CGI->new(); > our $csv = Text::CSV->new({binary => 1}); # binary needed for non-ASCII Unicode >-- >1.8.3.2
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 12859
:
31319
|
31497
|
31633