From c664718ef5e857144479859546d998f1465b830b Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Fri, 26 Feb 2016 08:56:16 -0500 Subject: Bug 1251221 - Pass cache => 1 to calls to Bugzilla::Product->new() called in Bugzilla::{Milestone,Version,Component} r=dkl,a=dylan --- Bugzilla/Milestone.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Milestone.pm') diff --git a/Bugzilla/Milestone.pm b/Bugzilla/Milestone.pm index cf7e3e35f..9cee52248 100644 --- a/Bugzilla/Milestone.pm +++ b/Bugzilla/Milestone.pm @@ -236,7 +236,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'}; } -- cgit v1.2.3-24-g4f1b