summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-10 18:39:53 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-10 18:39:53 +0200
commitbe7ee16e7e7a078d112fc9e1407c89246c31d54b (patch)
treee5ddfc3a0770a19ac3fc201e1d68217b9d88cc3f
parent4f9310f31d68fad232e84d6c80481fd5d060bdd8 (diff)
downloadbugzilla-be7ee16e7e7a078d112fc9e1407c89246c31d54b.tar.gz
bugzilla-be7ee16e7e7a078d112fc9e1407c89246c31d54b.tar.xz
Bug 1355137 - Cache Bugzilla::Field objects that are used as visibility fields
-rw-r--r--Bugzilla/Field.pm2
1 files changed, 1 insertions, 1 deletions
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};
}