summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Version.pm
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-02-26 14:56:16 +0100
committerDylan Hardison <dylan@mozilla.com>2016-02-26 14:56:16 +0100
commitc664718ef5e857144479859546d998f1465b830b (patch)
tree07032cef4ae6a00e068d43cfd5933168b5566f68 /Bugzilla/Version.pm
parent981cd0404a2a3a0a8a320c1709151b18075a3655 (diff)
downloadbugzilla-c664718ef5e857144479859546d998f1465b830b.tar.gz
bugzilla-c664718ef5e857144479859546d998f1465b830b.tar.xz
Bug 1251221 - Pass cache => 1 to calls to Bugzilla::Product->new() called in Bugzilla::{Milestone,Version,Component}
r=dkl,a=dylan
Diffstat (limited to 'Bugzilla/Version.pm')
-rw-r--r--Bugzilla/Version.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Version.pm b/Bugzilla/Version.pm
index 4b332ff2b..f6fedeba7 100644
--- a/Bugzilla/Version.pm
+++ b/Bugzilla/Version.pm
@@ -167,7 +167,7 @@ sub product {
my $self = shift;
require Bugzilla::Product;
- $self->{'product'} ||= new Bugzilla::Product($self->product_id);
+ $self->{'product'} ||= Bugzilla::Product->new({ id => $self->product_id, cache => 1 });
return $self->{'product'};
}