Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'share/html/Admin/CustomRoles/index.html')
-rw-r--r--share/html/Admin/CustomRoles/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/html/Admin/CustomRoles/index.html b/share/html/Admin/CustomRoles/index.html
index c366cfbab7..f308d6b4af 100644
--- a/share/html/Admin/CustomRoles/index.html
+++ b/share/html/Admin/CustomRoles/index.html
@@ -92,11 +92,12 @@
<em><&|/l&>No custom roles matching search criteria found.</&></em>
% } else {
<& /Elements/CollectionList,
- OrderBy => 'Name',
- Order => 'ASC',
+ OrderBy => 'LookupType|Name',
+ Order => 'ASC|ASC',
Rows => $Rows,
%ARGS,
Format => $Format,
+ DisplayFormat => ($Type? '' : '__FriendlyLookupType__,'). $Format,
Collection => $roles,
AllowSorting => 1,
PassArguments => [qw(
@@ -110,6 +111,7 @@ my $title = loc("Select a Custom Role");
my $roles = RT::CustomRoles->new($session{'CurrentUser'});
$roles->FindAllRows if $FindDisabled;
+$roles->LimitToLookupType( $Type ) if $Type;
if ( defined $SearchString && length $SearchString ) {
$roles->Limit(
@@ -128,6 +130,7 @@ my $Rows = RT->Config->Get('AdminSearchResultRows')->{'CustomRoles'} || 50;
</%INIT>
<%ARGS>
+$Type => ''
$FindDisabled => 0
$Format => undef