summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2006-08-18 09:58:11 +0000
committerivan <ivan>2006-08-18 09:58:11 +0000
commit7bac56be80a6323073566c6e3c0d87c90801036b (patch)
tree0e0d250929f47bdd4bf3002a1e24673d3757f3cf /FS
parent44c2490342f14b64acbd9fce3bf7df8df4e64aff (diff)
oops, want CHILD table for skeleton inserts, not parent
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm3
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;