referral import fixes, RT#4427
[freeside.git] / FS / FS / Record.pm
index 4b6684d..1f0b140 100644 (file)
@@ -1339,6 +1339,8 @@ sub process_batch_import {
     warn "can't parse file type from filename $file; defaulting to CSV";
     $type = 'csv';
   }
+  $type = 'csv'
+    if $opt->{'default_csv'} && $type ne 'xls';
 
   my $error =
     FS::Record::batch_import( {