projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow "none" as international prefix when all calls have country codes, #41198
[freeside.git]
/
httemplate
/
browse
/
nas.html
diff --git
a/httemplate/browse/nas.html
b/httemplate/browse/nas.html
index
c9d57e8
..
5ce729b
100644
(file)
--- a/
httemplate/browse/nas.html
+++ b/
httemplate/browse/nas.html
@@
-28,6
+28,14
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
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>
</%init>