X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_fiber.html;h=a07c5f541b174f748aeaab9c5a5644b9b6923789;hp=3960a163527bab4d82fe8f277cc7878e71a717b7;hb=ac44c24787eb093e47b92ee9939d003acf8464e7;hpb=0de4928e4afae5542b310eeb1ef0cff4750cb038 diff --git a/httemplate/search/svc_fiber.html b/httemplate/search/svc_fiber.html index 3960a1635..a07c5f541 100644 --- a/httemplate/search/svc_fiber.html +++ b/httemplate/search/svc_fiber.html @@ -23,6 +23,7 @@ 'ont_serial', 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, @@ -40,6 +41,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