summaryrefslogtreecommitdiff
path: root/httemplate/browse/nas.html
diff options
context:
space:
mode:
authormark <mark>2011-12-28 23:55:32 +0000
committermark <mark>2011-12-28 23:55:32 +0000
commit0978ea95c15ee2af833b20b5985d3b57e194966d (patch)
treeeabe39074d93c8fe3167ae21dd2768d231a8bb65 /httemplate/browse/nas.html
parent40f436877b2334fc2d4fd34c50d54807ae8777af (diff)
broadband_nas export, #15284
Diffstat (limited to 'httemplate/browse/nas.html')
-rw-r--r--httemplate/browse/nas.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/browse/nas.html b/httemplate/browse/nas.html
index c9d57e8ed..5ce729b65 100644
--- a/httemplate/browse/nas.html
+++ b/httemplate/browse/nas.html
@@ -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>