freeside/FS/FS Record.pm,1.102,1.103

ivan ivan at pouncequick.420.am
Wed May 4 02:20:37 PDT 2005


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv8498

Modified Files:
	Record.pm 
Log Message:
err msg

Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- Record.pm	13 Apr 2005 12:30:21 -0000	1.102
+++ Record.pm	4 May 2005 09:20:34 -0000	1.103
@@ -903,7 +903,9 @@
   return "Records not in same table!" unless $new->table eq $old->table;
 
   my $primary_key = $old->dbdef_table->primary_key;
-  return "Can't change $primary_key"
+  return "Can't change primary key $primary_key ".
+         'from '. $old->getfield($primary_key).
+         ' to ' . $new->getfield($primary_key)
     if $primary_key
        && ( $old->getfield($primary_key) ne $new->getfield($primary_key) );
 




More information about the freeside-commits mailing list