diff options
Diffstat (limited to 'httemplate/edit/process/part_export.cgi')
| -rw-r--r-- | httemplate/edit/process/part_export.cgi | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/edit/process/part_export.cgi b/httemplate/edit/process/part_export.cgi index 209419f0b..21150ef67 100644 --- a/httemplate/edit/process/part_export.cgi +++ b/httemplate/edit/process/part_export.cgi @@ -39,4 +39,14 @@ if ( $exportnum ) {  #  $exportnum = $new->exportnum;  } +my $info = FS::part_export::export_info()->{$new->exporttype}; +if ( $info->{nas} ) { +  my @nasnums = map { /^nasnum(\d+)$/ ? $1 : () } keys %{ $cgi->Vars }; +  $error ||= $new->process_m2m( +    link_table    => 'export_nas', +    target_table  => 'nas', +    params        => \@nasnums +  ); +} +  </%init>  | 
