From: ivan Date: Tue, 24 Feb 2009 10:00:49 +0000 (+0000) Subject: bootstrapping issues, aaargh X-Git-Tag: root_of_webpay_support~15 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6f200fd174151649b99130938d5b65dfa035f89e bootstrapping issues, aaargh --- diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index 2dc90385d..d87668c15 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -158,11 +158,17 @@ sub populate_initial_data { 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"; + } }