From 8f377efa3643b02c7ab25c989903813591888a1a Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 28 Nov 2018 08:55:29 -0500 Subject: RT# 81126 - IP address field now shows required when required, IP address and Radius Group sticky on error when provisioning svc broadband --- FS/FS/svc_broadband.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FS/FS/svc_broadband.pm') diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm index 02136c5..d089f41 100755 --- a/FS/FS/svc_broadband.pm +++ b/FS/FS/svc_broadband.pm @@ -96,6 +96,8 @@ points to. You can ask the object for a copy with the I method. =cut sub table_info { + my $conf = new FS::Conf; + my $ip_addr_required = $conf->exists('svc_broadband-allow_null_ip_addr'); { 'name' => 'Wireless broadband', 'name_plural' => 'Wireless broadband services', @@ -117,7 +119,10 @@ sub table_info { 'type' => 'fcc_477_speed', 'def_info' => 'both upload and download speed must be set to FCC 477 information if using that modifier', }, - 'ip_addr' => 'IP address', + 'ip_addr' => { + 'label' => 'IP address', + 'required' => $ip_addr_required, + }, 'blocknum' => { 'label' => 'Address block', 'type' => 'select', -- cgit v1.1