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:24:35 -0500 |
commit | ac44c24787eb093e47b92ee9939d003acf8464e7 (patch) | |
tree | 4311011712a9d3e99402433aa9febd19d7c27962 /httemplate/search/cust_svc.html | |
parent | 0de4928e4afae5542b310eeb1ef0cff4750cb038 (diff) |
RT#40641: unprovisioning preserved cancelled services [fixed for cust_svc without cust_pkg]
Diffstat (limited to 'httemplate/search/cust_svc.html')
-rw-r--r-- | httemplate/search/cust_svc.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 7000e3048..b2826309a 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -21,6 +21,7 @@ }, sub { $cust_pkg_cache{$_[0]->svcnum} ||= $_[0]->cust_pkg; + return '' unless $cust_pkg_cache{$_[0]->svcnum}; $cust_pkg_cache{$_[0]->svcnum}->ucfirst_status }, # package? @@ -39,6 +40,8 @@ '', '', sub { + $cust_pkg_cache{$_[0]->svcnum} ||= $_[0]->cust_pkg; + return '' unless $cust_pkg_cache{$_[0]->svcnum}; my $c = FS::cust_pkg::statuscolors; $c->{$cust_pkg_cache{$_[0]->svcnum}->status }; }, # pkg status |