summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-01-06 04:48:41 +0000
committerivan <ivan>2010-01-06 04:48:41 +0000
commit8fea4e3758a140576a1a0868ede7574048d782f4 (patch)
treeb5ec8d0d4f0bb79e760ab247b352f2e4f6ba38e9
parent4b503bee677b9066f2996966fd3b4a186a938501 (diff)
eliminate spurious warnings on usage changes...
-rw-r--r--FS/FS/svc_acct.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 19f292157..c5da82da5 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -2122,8 +2122,8 @@ sub set_usage {
#$self->snapshot; #not necessary, we retain the old values
#create an object with the updated usage values
my $new = qsearchs('svc_acct', { 'svcnum' => $self->svcnum });
- #call exports
- my $error = $new->replace($self);
+ local($FS::Record::nowarn_identical) = 1;
+ my $error = $new->replace($self); #call exports
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
return "Error replacing: $error";