From 04f99991071acf5c390ea4d52db37798543ff9d8 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 18 Mar 2013 13:54:24 -0700 Subject: [PATCH] add mac_addr to svc_broadband-manage_link, RT#21997 --- FS/FS/Conf.pm | 2 +- httemplate/elements/tr-cust_svc.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 4842f679e..fbac0116d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -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', }, diff --git a/httemplate/elements/tr-cust_svc.html b/httemplate/elements/tr-cust_svc.html index 1ca22f6d4..b66654f38 100644 --- a/httemplate/elements/tr-cust_svc.html +++ b/httemplate/elements/tr-cust_svc.html @@ -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'; -- 2.11.0