From be7ee16e7e7a078d112fc9e1407c89246c31d54b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 10 Apr 2017 12:39:53 -0400 Subject: Bug 1355137 - Cache Bugzilla::Field objects that are used as visibility fields --- Bugzilla/Field.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index c46895924..2f884d2a2 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -640,7 +640,7 @@ sub visibility_field { my $self = shift; if ($self->{visibility_field_id}) { $self->{visibility_field} ||= - $self->new($self->{visibility_field_id}); + $self->new({ id => $self->{visibility_field_id}, cache => 1 }); } return $self->{visibility_field}; } -- cgit v1.2.3-24-g4f1b