diff options
| author | mark <mark> | 2011-12-28 23:56:20 +0000 |
|---|---|---|
| committer | mark <mark> | 2011-12-28 23:56:20 +0000 |
| commit | b6dbe0f12dbbe4ea5209367f905f937789b5b607 (patch) | |
| tree | 39434f7f4f20b901bcd27e2f120c46e9b713815d /httemplate/browse | |
| parent | 9ad2437e1cfaffceb657216a48ea3c7cc9414922 (diff) | |
broadband_nas export, #15284
Diffstat (limited to 'httemplate/browse')
| -rw-r--r-- | httemplate/browse/nas.html | 10 |
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> |
