[freeside-commits] freeside/FS/FS/cust_main Import.pm,1.2,1.3
Ivan,,,
ivan at wavetail.420.am
Thu Nov 20 04:52:34 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv27630
Modified Files:
Import.pm
Log Message:
better end-of-spreadsheet detection for excel import, hopefully. should fix "Error: Can't use an undefined value as an ARRAY reference" error on import. RT#4297
Index: Import.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Import.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Import.pm 9 Nov 2008 11:31:21 -0000 1.2
+++ Import.pm 20 Nov 2008 12:52:32 -0000 1.3
@@ -232,7 +232,8 @@
} elsif ( $type eq 'xls' ) {
- last if $row > ($parser->{MaxRow} || $parser->{MinRow});
+ last if $row > ($parser->{MaxRow} || $parser->{MinRow})
+ || ! $parser->{Cells}[$row];
my @row = @{ $parser->{Cells}[$row] };
@columns = map $_->{Val}, @row;
More information about the freeside-commits
mailing list