add mac_addr to svc_broadband-manage_link, RT#21997
authorIvan Kohler <ivan@freeside.biz>
Mon, 18 Mar 2013 20:54:24 +0000 (13:54 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 18 Mar 2013 20:54:24 +0000 (13:54 -0700)
FS/FS/Conf.pm
httemplate/elements/tr-cust_svc.html

index 4842f67..fbac011 100644 (file)
@@ -4835,7 +4835,7 @@ and customer address. Include units.',
   {
     'key'         => 'svc_broadband-manage_link',
     'section'     => 'UI',
-    'description' => 'URL for svc_broadband "Manage Device" link.  The following substitutions are available: $ip_addr.',
+    'description' => 'URL for svc_broadband "Manage Device" link.  The following substitutions are available: $ip_addr and $mac_addr.',
     'type'        => 'text',
   },
 
index 1ca22f6..b66654f 100644 (file)
@@ -96,7 +96,8 @@ my $svc_unprovision_link =
 my $manage_link = $opt{'manage_link'};
 my $manage_target = '';
 if ( $part_svc->svcdb eq 'svc_broadband' and $manage_link ) {
-  my $ip_addr = $svc_x->ip_addr; #substitution for $manage_link
+  my $ip_addr  = $svc_x->ip_addr;  #substitution for $manage_link
+  my $mac_addr = $svc_x->mac_addr; # ditto
   $manage_link = eval(qq("$manage_link"));
   $opt{'manage_link_text'} ||= mt('Manage Device');
   $opt{'manage_link_loc'}  ||= 'bottom';