diff options
author | ivan <ivan> | 2006-08-18 09:58:11 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-08-18 09:58:11 +0000 |
commit | 7bac56be80a6323073566c6e3c0d87c90801036b (patch) | |
tree | 0e0d250929f47bdd4bf3002a1e24673d3757f3cf | |
parent | 44c2490342f14b64acbd9fce3bf7df8df4e64aff (diff) |
oops, want CHILD table for skeleton inserts, not parent
-rw-r--r-- | FS/FS/cust_main.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 2617d10b0..270c544ef 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -524,7 +524,8 @@ sub _copy_skel { } - my @sel_columns = grep { $_ ne $primary_key } dbdef->table($table)->columns; + my @sel_columns = grep { $_ ne $primary_key } + dbdef->table($child_table)->columns; my $sel_columns = ' ( '. join(', ', @sel_columns ). ' ) '; my @ins_columns = grep { $_ ne $child_pkey } @sel_columns; |