[freeside-commits] freeside/FS/FS Setup.pm,1.16,1.17
Ivan,,,
ivan at wavetail.420.am
Tue Feb 24 02:00:51 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30303/FS/FS
Modified Files:
Setup.pm
Log Message:
bootstrapping issues, aaargh
Index: Setup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Setup.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Setup.pm 24 Feb 2009 09:58:00 -0000 1.16
+++ Setup.pm 24 Feb 2009 10:00:49 -0000 1.17
@@ -158,11 +158,17 @@
my @records = @{ $data->{$table} };
foreach my $record ( @records ) {
+
my $args = delete($record->{'_insert_args'}) || [];
my $object = $class->new( $record );
my $error = $object->insert( @$args );
die "error inserting record into $table: $error\n"
if $error;
+
+ my $pkey = $object->primary_key;
+ my $pkeyvalue = $object->$pkey();
+ warn " inserted $pkeyvalue\n";
+
}
}
More information about the freeside-commits
mailing list