diff options
author | mark <mark> | 2011-10-31 19:20:16 +0000 |
---|---|---|
committer | mark <mark> | 2011-10-31 19:20:16 +0000 |
commit | 2ad6569982365759d7baaf5a97bc836770a54291 (patch) | |
tree | 81c72ce1e7687e27ea1f727643f659fdb6335793 /httemplate/edit/process/part_export.cgi | |
parent | 588ac92d054671aa13cb61f76b5da472661cb1ac (diff) |
export NAS table to sqlradius, #14697
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> |