[freeside-commits] freeside/FS/FS Record.pm,1.236,1.237
Ivan,,,
ivan at wavetail.420.am
Thu Dec 1 20:12:39 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6243
Modified Files:
Record.pm
Log Message:
better error message for identical replacements
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -w -d -r1.236 -r1.237
--- Record.pm 18 Nov 2011 22:20:34 -0000 1.236
+++ Record.pm 2 Dec 2011 04:12:37 -0000 1.237
@@ -1182,7 +1182,9 @@
? ($_, $new->getfield($_)) : () } $old->fields;
unless (keys(%diff) || $no_update_diff ) {
- carp "[warning]$me $new -> replace $old: records identical"
+ carp "[warning]$me ". ref($new)."->replace ".
+ ( $primary_key ? "$primary_key ".$new->get($primary_key) : '' ).
+ ": records identical"
unless $nowarn_identical;
return '';
}
More information about the freeside-commits
mailing list