From: jeff Date: Mon, 16 Feb 2009 06:02:09 +0000 (+0000) Subject: allow completely empty updates (again?) X-Git-Tag: root_of_webpay_support~54 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=b38973e36476add4099190fb19453d7d762bb8ac;p=freeside.git allow completely empty updates (again?) --- 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