summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-03-30 04:50:13 +0000
committerivan <ivan>2009-03-30 04:50:13 +0000
commit259747e66fcb16f3b84bf4a0e9673517f4ccd1d2 (patch)
treebbde8d6b4bf6eed77bd52d09279dab340da2eebc
parent631063078b0e9ac6d53616f42c32eec30a76d24b (diff)
and hopefully actually using the count will finally do it, RT#5083
-rw-r--r--FS/FS/cust_pkg.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 78f4bedb9..86ce25566 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1415,13 +1415,15 @@ services.
sub cust_svc {
my $self = shift;
- cluck "cust_pkg->cust_svc called" if $DEBUG > 1;
-
if ( @_ ) {
return qsearch( 'cust_svc', { 'pkgnum' => $self->pkgnum,
'svcpart' => shift, } );
}
+ return () unless $self->num_cust_svc;
+
+ cluck "cust_pkg->cust_svc called" if $DEBUG > 1;
+
#if ( $self->{'_svcnum'} ) {
# values %{ $self->{'_svcnum'}->cache };
#} else {