X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_domain.cgi;h=23eeba6a733ddcc51ea8bbd95bcecb5981c3bdc5;hp=c8fca9fdcfa5bf40bc713952f6f78b8d31f97c76;hb=f30eaaf66cd0a947f388a03edd4522ba92a367bb;hpb=19c77bd46e3d0155b9f2a1afb7a3c488bc050f65 diff --git a/httemplate/search/svc_domain.cgi b/httemplate/search/svc_domain.cgi index c8fca9fdc..23eeba6a7 100755 --- a/httemplate/search/svc_domain.cgi +++ b/httemplate/search/svc_domain.cgi @@ -15,6 +15,7 @@ 'domain', 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, @@ -33,6 +34,8 @@ '', '', 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