projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c2490
)
oops, want CHILD table for skeleton inserts, not parent
author
ivan
<ivan>
Fri, 18 Aug 2006 09:58:11 +0000
(09:58 +0000)
committer
ivan
<ivan>
Fri, 18 Aug 2006 09:58:11 +0000
(09:58 +0000)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
2617d10
..
270c544
100644
(file)
--- 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;