diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-11 05:39:46 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-11 05:39:46 -0800 |
commit | e532e861dc162cab86905907e743ae15b315dca3 (patch) | |
tree | 894bcd99d65c70fd78b6729122b2618c0f822286 /FS/FS/cust_pkg.pm | |
parent | f97797177af6a2456a8fed90372eca3f6d8f4049 (diff) |
fix advanced package report, RT#40292, fallout from RT#20173
Diffstat (limited to 'FS/FS/cust_pkg.pm')
-rw-r--r-- | FS/FS/cust_pkg.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 0b60ed7..02e0e1e 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); } } |