summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:44 -0800
committerIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:44 -0800
commit29fb80073eb21f453515618f01d2c0d03a3004ec (patch)
tree24aad887b1f998a9b916b5eec55f5dc57a453bea /FS
parent33a67a59980166adf689f2f5327c7147e2cdf0bf (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 0b60ed7db..02e0e1e72 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -56,9 +56,11 @@ our ($disable_agentcheck, $DEBUG, $me, $import) = (0, 0, '[FS::cust_pkg]', 0);
our $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);
}
}