[freeside-commits] freeside/FS/FS Record.pm,1.135.2.1,1.135.2.2
Kristian Hoffmann,420,,
khoff at wavetail.420.am
Fri Mar 9 16:21:55 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv8556
Modified Files:
Tag: FREESIDE_1_7_BRANCH
Record.pm
Log Message:
Added $FS::Record::no_update_diff flag to update "identical" records anyway.
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.135.2.1
retrieving revision 1.135.2.2
diff -u -d -r1.135.2.1 -r1.135.2.2
--- Record.pm 10 Mar 2007 00:21:10 -0000 1.135.2.1
+++ Record.pm 10 Mar 2007 00:21:53 -0000 1.135.2.2
@@ -3,7 +3,7 @@
use strict;
use vars qw( $AUTOLOAD @ISA @EXPORT_OK $DEBUG
$conf $me
- %virtual_fields_cache $nowarn_identical );
+ %virtual_fields_cache $nowarn_identical $no_update_diff );
use Exporter;
use Carp qw(carp cluck croak confess);
use File::CounterFile;
@@ -30,6 +30,7 @@
$me = '[FS::Record]';
$nowarn_identical = 0;
+$no_update_diff = 0;
my $rsa_module;
my $rsa_loaded;
@@ -1041,7 +1042,7 @@
my %diff = map { ($new->getfield($_) ne $old->getfield($_))
? ($_, $new->getfield($_)) : () } $old->fields;
- unless ( keys(%diff) ) {
+ unless (keys(%diff) || $no_update_diff ) {
carp "[warning]$me $new -> replace $old: records identical"
unless $nowarn_identical;
return '';
More information about the freeside-commits
mailing list