X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FRecord.pm;h=333602c071e29e57e3bf1f541b5d6d64e7e1c5a2;hp=b476df2c0cd2f0509f28188d22a4059829ea4b3a;hb=87661d51ce44b78c5b156f4ee7c52e75a9d38746;hpb=f5266a4d07d116efd732f433d0f4f3a47b143a7d diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index b476df2c0..333602c07 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -472,10 +472,11 @@ returns the error, otherwise returns false. sub replace { my ( $new, $old ) = ( shift, shift ); + warn "[debug][FS::Record] $new ->replace $old\n" if $DEBUG; my @diff = grep $new->getfield($_) ne $old->getfield($_), $old->fields; unless ( @diff ) { - carp "warning: records identical"; + carp "[warning][FS::Record] $new -> replace $old: records identical"; return ''; } @@ -899,7 +900,7 @@ sub fields { } #croak "Usage: \@fields = fields(\$table)\n or: \@fields = \$record->fields" unless $table; my($table_obj) = $dbdef->table($table); - croak "Unknown table $table" unless $table_obj; + confess "Unknown table $table" unless $table_obj; $table_obj->columns; } @@ -993,7 +994,7 @@ sub DESTROY { return; } =head1 VERSION -$Id: Record.pm,v 1.27 2001-09-11 00:08:18 ivan Exp $ +$Id: Record.pm,v 1.29 2001-09-16 12:45:35 ivan Exp $ =head1 BUGS