diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-06-08 17:24:35 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-06-08 17:35:22 -0500 |
commit | 6129a83b54394aff0b4368a367033aa6a309cd8c (patch) | |
tree | c8e892671ef84e81059cb93c8d1402a77cb37b21 /httemplate/search/svc_circuit.cgi | |
parent | 8d0e15c1c73639374443f5fd2c06334eb12bea44 (diff) |
RT#40641: unprovisioning preserved cancelled services [fixed for cust_svc without cust_pkg]
Diffstat (limited to 'httemplate/search/svc_circuit.cgi')
-rw-r--r-- | httemplate/search/svc_circuit.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/search/svc_circuit.cgi b/httemplate/search/svc_circuit.cgi index 2174734ea..3a85375ef 100644 --- a/httemplate/search/svc_circuit.cgi +++ b/httemplate/search/svc_circuit.cgi @@ -21,6 +21,7 @@ 'ip_addr', sub { $cust_pkg_cache{$_[0]->svcnum} ||= $_[0]->cust_svc->cust_pkg; + return '' unless $cust_pkg_cache{$_[0]->svcnum}; $cust_pkg_cache{$_[0]->svcnum}->ucfirst_status }, \&FS::UI::Web::cust_fields, @@ -38,6 +39,8 @@ 'color' => [ ('') x 6, sub { + $cust_pkg_cache{$_[0]->svcnum} ||= $_[0]->cust_svc->cust_pkg; + return '' unless $cust_pkg_cache{$_[0]->svcnum}; my $c = FS::cust_pkg::statuscolors; $c->{$cust_pkg_cache{$_[0]->svcnum}->status }; }, # pkg status |