[freeside-commits] freeside/FS/FS svc_acct.pm,1.274,1.275

Ivan,,, ivan at wavetail.420.am
Tue Jan 5 20:47:50 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv855

Modified Files:
	svc_acct.pm 
Log Message:
eliminate spurious warnings on usage changes...

Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -d -r1.274 -r1.275
--- svc_acct.pm	23 Dec 2009 00:30:13 -0000	1.274
+++ svc_acct.pm	6 Jan 2010 04:47:48 -0000	1.275
@@ -2122,8 +2122,8 @@
   #$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";



More information about the freeside-commits mailing list