projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
770f5f7
)
better end-of-spreadsheet detection for excel import, hopefully. should fix "Error...
author
ivan
<ivan>
Thu, 20 Nov 2008 12:52:32 +0000
(12:52 +0000)
committer
ivan
<ivan>
Thu, 20 Nov 2008 12:52:32 +0000
(12:52 +0000)
FS/FS/cust_main/Import.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Import.pm
b/FS/FS/cust_main/Import.pm
index
5c00c66
..
a955d24
100644
(file)
--- a/
FS/FS/cust_main/Import.pm
+++ b/
FS/FS/cust_main/Import.pm
@@
-232,7
+232,8
@@
sub batch_import {
} 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;