From 64f9efad9014caf9f0395f60afd6a7a5fedd0490 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 18 Aug 2010 03:43:42 +0000 Subject: [PATCH] handle the usage_class-less details in svc_phone sections --- FS/FS/cust_bill.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index b73e360af..8468f3abf 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3750,6 +3750,7 @@ sub _items_svc_phone_sections { my %lines = (); my %usage_class = map { $_->classnum => $_ } qsearch( 'usage_class', {} ); + $usage_class{''} ||= new FS::usage_class { 'classname' => '', 'weight' => 0 }; foreach my $cust_bill_pkg ( $self->cust_bill_pkg ) { next unless $cust_bill_pkg->pkgnum > 0; -- 2.11.0