summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:48 -0800
committerIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:48 -0800
commit117659ee02ba32bf59335bf18faa7a075f231709 (patch)
tree7402c232557eb032897fa41613fee4c721c8345e /FS
parent95e4856fce90f6549822707c1dd28bdcbec5f540 (diff)
fix advanced package report, RT#40292, fallout from RT#20173
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_pkg.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index daa3353c1..b1373849f 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -56,9 +56,11 @@ $disable_agentcheck = 0;
$upgrade = 0; #go away after setup+start dates cleaned up for old customers
+our $cache_enabled = 0;
+
sub _simplecache {
my( $self, $hashref ) = @_;
- if ( $hashref->{'pkg'} ) {
+ if ( $cache_enabled && $hashref->{'pkg'} && $hashref->{'plan'} ) {
$self->{'_pkgpart'} = FS::part_pkg->new($hashref);
}
}