[freeside-commits] freeside/httemplate/edit/process nas.html, 1.1, 1.2 part_export.cgi, 1.10, 1.11
Mark Wells
mark at wavetail.420.am
Mon Oct 31 12:20:18 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv27163/httemplate/edit/process
Modified Files:
nas.html part_export.cgi
Log Message:
export NAS table to sqlradius, #14697
Index: part_export.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_export.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- part_export.cgi 15 May 2009 19:41:33 -0000 1.10
+++ part_export.cgi 31 Oct 2011 19:20:16 -0000 1.11
@@ -39,4 +39,14 @@
# $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>
Index: nas.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/nas.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- nas.html 14 Oct 2011 08:56:04 -0000 1.1
+++ nas.html 31 Oct 2011 19:20:16 -0000 1.2
@@ -1,4 +1,9 @@
-<& elements/process.html, table=>'nas', viewall_dir=>'browse', &>
+<& elements/process.html,
+ table => 'nas',
+ viewall_dir => 'browse',
+ process_m2m => { link_table => 'export_nas',
+ target_table => 'part_export' },
+&>
<%init>
die "access denied"
More information about the freeside-commits
mailing list