diff options
author | mark <mark> | 2011-10-31 19:20:29 +0000 |
---|---|---|
committer | mark <mark> | 2011-10-31 19:20:29 +0000 |
commit | 1e1a0a1a7945cae26175e3afe25e61ec6114c48e (patch) | |
tree | 6e147479ed1c20568ff6fee934a762a8950dc923 /httemplate/edit/process/part_export.cgi | |
parent | 14164a8a09f3bf1ccbb59a1a94ea90231cffadd8 (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> |