diff options
Diffstat (limited to 'lib/RT/CustomRoles.pm')
-rw-r--r-- | lib/RT/CustomRoles.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/RT/CustomRoles.pm b/lib/RT/CustomRoles.pm index f49a9f9e4d..7fdecf856c 100644 --- a/lib/RT/CustomRoles.pm +++ b/lib/RT/CustomRoles.pm @@ -156,6 +156,19 @@ sub LimitToMultipleValue { ); } +=head2 LimitToLookupType + +Takes LookupType and limits collection. + +=cut + +sub LimitToLookupType { + my $self = shift; + my $lookup = shift; + + $self->Limit( FIELD => 'LookupType', VALUE => "$lookup" ); +} + =head2 ApplySortOrder Sort custom roles according to the order provided by the object custom roles. |