From 74b4068002a318228b327ef0709eda85811d6ab2 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 18 Aug 2010 04:42:16 +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 37603bd17..8e7973d33 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3613,6 +3613,7 @@ sub _items_extra_usage_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