Commit c664718e authored by Dylan Hardison's avatar Dylan Hardison

Bug 1251221 - Pass cache => 1 to calls to Bugzilla::Product->new() called in…

Bug 1251221 - Pass cache => 1 to calls to Bugzilla::Product->new() called in Bugzilla::{Milestone,Version,Component} r=dkl,a=dylan
parent 981cd040
......@@ -390,10 +390,9 @@ sub initial_cc {
sub product {
my $self = shift;
if (!defined $self->{'product'}) {
require Bugzilla::Product; # We cannot |use| it.
$self->{'product'} = new Bugzilla::Product($self->product_id);
}
require Bugzilla::Product;
$self->{'product'} ||= Bugzilla::Product->new({ id => $self->product_id, cache => 1 });
return $self->{'product'};
}
......
......@@ -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'};
}
......
......@@ -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'};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment