allow completely empty updates (again?)
authorjeff <jeff>
Mon, 16 Feb 2009 06:02:09 +0000 (06:02 +0000)
committerjeff <jeff>
Mon, 16 Feb 2009 06:02:09 +0000 (06:02 +0000)
FS/FS/cust_tax_location.pm
FS/FS/part_pkg_taxrate.pm
FS/FS/tax_class.pm

index 7a6af34..b7437a0 100644 (file)
@@ -314,7 +314,7 @@ sub batch_import {
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty file!" unless $imported;
+  return "Empty file!" unless ( $imported || $format =~ /^cch-update/ );
 
   ''; #no error
 
index 9e1c723..6d1414a 100644 (file)
@@ -384,7 +384,7 @@ sub batch_import {
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty file!" unless $imported;
+  return "Empty file!" unless ( $imported || $format eq 'cch-update' );
 
   ''; #no error
 
index 51d87ab..480fa10 100644 (file)
@@ -368,7 +368,7 @@ sub batch_import {
 
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
 
-  return "Empty File!" unless $imported;
+  return "Empty File!" unless ($imported || $format eq 'cch-update');
 
   ''; #no error