[freeside-commits] freeside/httemplate/edit/process nas.html, 1.1.2.2, 1.1.2.3 part_export.cgi, 1.10, 1.10.8.1

Mark Wells mark at wavetail.420.am
Mon Oct 31 12:20:31 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv27281/httemplate/edit/process

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	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.10.8.1
diff -u -w -d -r1.10 -r1.10.8.1
--- part_export.cgi	15 May 2009 19:41:33 -0000	1.10
+++ part_export.cgi	31 Oct 2011 19:20:29 -0000	1.10.8.1
@@ -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.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- nas.html	14 Oct 2011 08:56:11 -0000	1.1.2.2
+++ nas.html	31 Oct 2011 19:20:28 -0000	1.1.2.3
@@ -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