From: ivan Date: Tue, 9 Dec 2008 01:49:55 +0000 (+0000) Subject: oops X-Git-Tag: root_of_webpay_support~201 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a3342227e5f64a2ef4d45ccd5c6101b325549f01 oops --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 80ab564f1..1f0b140e2 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1339,8 +1339,8 @@ sub process_batch_import { warn "can't parse file type from filename $file; defaulting to CSV"; $type = 'csv'; } - $type = 'csv' unless $type eq 'xls'; - $opt->{'default_csv'} && $type ne 'xls'; + $type = 'csv' + if $opt->{'default_csv'} && $type ne 'xls'; my $error = FS::Record::batch_import( {