alas, now try with recursion
authorivan <ivan>
Fri, 18 Aug 2006 11:52:13 +0000 (11:52 +0000)
committerivan <ivan>
Fri, 18 Aug 2006 11:52:13 +0000 (11:52 +0000)
FS/FS/cust_main.pm

index e2bc95f..75ad1ef 100644 (file)
@@ -523,7 +523,7 @@ sub _copy_skel {
     }
 
     my $sequence = '';
-    if ( keys %{ $child_tables{$child_table} } ) {
+    if ( keys %{ $child_tables{$child_table_def} } ) {
 
       return "$child_table has no primary key".
              " (run dbdef-create or try specifying it?)\n"