- $self->{'objects'} = [];
- my @search_atts = $object->Attributes->Named('SavedSearch');
- foreach my $att (@search_atts) {
- my $search = RT::SavedSearch->new($self->CurrentUser);
- $search->Load($privacy, $att->Id);
- next if $type && $search->Type ne $type;
- push(@{$self->{'objects'}}, $search);
- }
+ $self->{'objects'} = [];
+ my @search_atts = $object->Attributes->Named('SavedSearch');
+ foreach my $att (@search_atts) {
+ my $search = RT::SavedSearch->new($self->CurrentUser);
+ $search->Load($privacy, $att->Id);
+ next if $type && $search->Type && $search->Type ne $type;
+ push(@{$self->{'objects'}}, $search);
+ }