From 2ad6569982365759d7baaf5a97bc836770a54291 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 31 Oct 2011 19:20:16 +0000 Subject: export NAS table to sqlradius, #14697 --- httemplate/edit/process/part_export.cgi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'httemplate/edit/process/part_export.cgi') 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 + ); +} + -- cgit v1.2.1