From: Robin Sheat Date: Thu, 24 Nov 2011 00:35:27 +0000 (+1300) Subject: Bug 5373 - allow 'cardnumber' to appear on the patron import field list X-Git-Tag: v3.08.00~437 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=5dd94487ac7d62b7fae2aad79bdc5c330c6a998e;p=koha_gimpoz Bug 5373 - allow 'cardnumber' to appear on the patron import field list For some reason, it was explicitly removed, however you need it if you want to match up on cardnumber. Signed-off-by: Katrin Fischer Easy to test and works nicely. Before patch cardnumber is not shown in the list of fields on the patron import page. After applying the patch it is. Signed-off-by: Paul Poulain --- diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl index a7e9142d71..83db52210e 100755 --- a/tools/import_borrowers.pl +++ b/tools/import_borrowers.pl @@ -62,7 +62,7 @@ my @columnkeys = C4::Members->columns; if ($extended) { push @columnkeys, 'patron_attributes'; } -my $columnkeystpl = [ map { {'key' => $_} } grep {$_ ne 'borrowernumber' && $_ ne 'cardnumber'} @columnkeys ]; # ref. to array of hashrefs. +my $columnkeystpl = [ map { {'key' => $_} } grep {$_ ne 'borrowernumber' } @columnkeys ]; # ref. to array of hashrefs. my $input = CGI->new(); our $csv = Text::CSV->new({binary => 1}); # binary needed for non-ASCII Unicode