summaryrefslogtreecommitdiff
path: root/FS/FS/part_svc.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-01-28 16:23:40 -0800
committerIvan Kohler <ivan@freeside.biz>2016-01-28 16:23:40 -0800
commit5f7ce7b22d70058613be046ee67778d6d9969fd9 (patch)
treec56bdaaff0f200e329d2e99825564393d8e5aedd /FS/FS/part_svc.pm
parentbbc082b0295335839b6e52ebc46941905165f202 (diff)
optimize Reports->Customers->List Customers, RT#20173
Diffstat (limited to 'FS/FS/part_svc.pm')
-rw-r--r--FS/FS/part_svc.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm
index 08003dd..612c590 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -565,6 +565,9 @@ is specified as B<0>, returns the number of unlinked customer services.
sub num_cust_svc {
my $self = shift;
+ return $self->{Hash}{num_cust_svc}
+ if !@_ && exists($self->{Hash}{num_cust_svc});
+
my @param = ( $self->svcpart );
my( $join, $and ) = ( '', '' );