Skip to content

Commit be7ee16

Browse files
committed
Bug 1355137 - Cache Bugzilla::Field objects that are used as visibility fields
1 parent 4f9310f commit be7ee16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bugzilla/Field.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ sub visibility_field {
640640
my $self = shift;
641641
if ($self->{visibility_field_id}) {
642642
$self->{visibility_field} ||=
643-
$self->new($self->{visibility_field_id});
643+
$self->new({ id => $self->{visibility_field_id}, cache => 1 });
644644
}
645645
return $self->{visibility_field};
646646
}

0 commit comments

Comments
 (0)