summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Import.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-11-26 00:20:30 +0000
committerivan <ivan>2008-11-26 00:20:30 +0000
commitcb3519647ad9a022e14e596e28a5a5eed6afae49 (patch)
tree0aa457e2815de6623f582fb99edaacb53f0b2d28 /FS/FS/cust_main/Import.pm
parent49d4fb98b700725f2ecf249b3f1e368d236e38e2 (diff)
should fix importing from excel, closes: RT#4337
Diffstat (limited to 'FS/FS/cust_main/Import.pm')
-rw-r--r--FS/FS/cust_main/Import.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm
index a955d24..519540f 100644
--- a/FS/FS/cust_main/Import.pm
+++ b/FS/FS/cust_main/Import.pm
@@ -190,7 +190,7 @@ sub batch_import {
eval "use Spreadsheet::ParseExcel;";
die $@ if $@;
- my $excel = new Spreadsheet::ParseExcel::Workbook->Parse($filename);
+ my $excel = Spreadsheet::ParseExcel::Workbook->new->Parse($filename);
$parser = $excel->{Worksheet}[0]; #first sheet
$count = $parser->{MaxRow} || $parser->{MinRow};