[freeside-commits] freeside/httemplate/browse nas.html, 1.1.2.2, 1.1.2.3

Mark Wells mark at wavetail.420.am
Wed Dec 28 15:56:22 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv6000/httemplate/browse

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	nas.html 
Log Message:
broadband_nas export, #15284

Index: nas.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/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	28 Dec 2011 23:56:19 -0000	1.1.2.3
@@ -28,6 +28,14 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
-my $link = [ $p.'edit/nas.html?', 'nasnum' ];
+my $link = sub {
+  my $nas = shift;
+  if ( $nas->svcnum ) {
+    return [ $p.'view/svc_broadband.cgi?', 'svcnum' ];
+  }
+  else {
+    return [ $p.'edit/nas.html?', 'nasnum' ];
+  }
+};
 
 </%init>



More information about the freeside-commits mailing list