Skip to content

Commit

Permalink
Add user cfs to query builder criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Feb 26, 2024
1 parent c8b0e23 commit fe05866
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions share/html/Search/Elements/SelectPersonType
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ $m->callback(
);
push @types, map { [ "CustomRole.{" . $_->Name . "}", $_->Name ] } @{ $CustomRoles->ItemsArrayRef };

my $cfs = RT::CustomFields->new( $session{CurrentUser} );
$cfs->LimitToLookupType( RT::User->CustomFieldLookupType );
while ( my $cf = $cfs->Next ) {
push @subtypes, 'CustomField.{' . $cf->Name . '}';
}

$m->callback(Types => \@types, Subtypes => \@subtypes);

</%INIT>
Expand Down

0 comments on commit fe05866

Please sign in to comment.