diff options
author | jeff <jeff> | 2009-02-16 06:02:09 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-02-16 06:02:09 +0000 |
commit | b38973e36476add4099190fb19453d7d762bb8ac (patch) | |
tree | 14d02b01a5eeeac70416ef7e096ea06904af69c5 /FS | |
parent | 1855f08f225b076cd3db2af1c271478ea36f4c28 (diff) |
allow completely empty updates (again?)
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_tax_location.pm | 2 | ||||
-rw-r--r-- | FS/FS/part_pkg_taxrate.pm | 2 | ||||
-rw-r--r-- | FS/FS/tax_class.pm | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_tax_location.pm b/FS/FS/cust_tax_location.pm index 7a6af341d..b7437a08b 100644 --- a/FS/FS/cust_tax_location.pm +++ b/FS/FS/cust_tax_location.pm @@ -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 diff --git a/FS/FS/part_pkg_taxrate.pm b/FS/FS/part_pkg_taxrate.pm index 9e1c723d0..6d1414a18 100644 --- a/FS/FS/part_pkg_taxrate.pm +++ b/FS/FS/part_pkg_taxrate.pm @@ -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 diff --git a/FS/FS/tax_class.pm b/FS/FS/tax_class.pm index 51d87ab10..480fa10a6 100644 --- a/FS/FS/tax_class.pm +++ b/FS/FS/tax_class.pm @@ -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 |