[Koha-patches] [PATCH 49/55] MT2926: Fix default values import

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Wed Mar 10 22:26:31 CET 2010


From: Matthias Meusburger <matthias.meusburger at biblibre.com>

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
 tools/import_borrowers.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl
index 1baf079..0547621 100755
--- a/tools/import_borrowers.pl
+++ b/tools/import_borrowers.pl
@@ -147,7 +147,7 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) {
         } elsif (@columns == @columnkeys) {
             @borrower{@columnkeys} = @columns;
             # MJR: try to fill blanks gracefully by using default values
-            foreach my $key (@criticals) {
+            foreach my $key (@columnkeys) {
                 if ($borrower{$key} !~ /\S/) {
                     $borrower{$key} = $defaults{$key};
                 }
-- 
1.6.3.3




More information about the Koha-patches mailing list