X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FCustomFields%2Findex.html;h=fb5e8bb6a6421029abfd9bc98c6ba0913e82e9b8;hp=e8687ed21a6214992085d3102622f118ce3f2719;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=919e930aa9279b3c5cd12b593889cd6de79d67bf diff --git a/rt/share/html/Admin/CustomFields/index.html b/rt/share/html/Admin/CustomFields/index.html index e8687ed21..fb5e8bb6a 100644 --- a/rt/share/html/Admin/CustomFields/index.html +++ b/rt/share/html/Admin/CustomFields/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -49,24 +49,7 @@ <& /Elements/Tabs &> % my $tmp = RT::CustomField->new( $session{'CurrentUser'} ); -% if ( $Type ) { -

<% loc("Custom Fields for [_1]", $tmp->FriendlyLookupType( $Type )) %>

-% } - -<& /Elements/CollectionList, - OrderBy => 'LookupType|Name', - Order => 'ASC|ASC', - Rows => 50, - %ARGS, - Collection => $CustomFields, - Format => $Format, - DisplayFormat => ($Type? '' : '__FriendlyLookupType__,'). $Format, - AllowSorting => 1, - PassArguments => [ - qw(Format Rows Page Order OrderBy), - qw(Type ShowDisabled) - ], -&> +

<% $Type ? loc("Custom Fields for [_1]", $Type) : loc('All Custom Fields') %>

<&|/l&>Only show custom fields for: @@ -77,15 +60,30 @@ % }
- /> -<&|/l&>Include disabled custom fields in listing. + /> +
% $m->callback(CallbackName => 'BeforeSubmit'); - +
+<& /Elements/CollectionList, + OrderBy => 'LookupType|Name', + Order => 'ASC|ASC', + Rows => $Rows, + %ARGS, + Collection => $CustomFields, + Format => $Format, + DisplayFormat => ($Type? '' : '__FriendlyLookupType__,'). $Format, + AllowSorting => 1, + PassArguments => [ + qw(Format Rows Page Order OrderBy), + qw(Type ShowDisabled) + ], +&> + <%args> $Type => '' $ShowDisabled => 0 @@ -95,12 +93,6 @@ $Format => undef <%INIT> my $title = loc('Select a Custom Field'); -$Type ||= $ARGS{'type'} || ''; -if ( !$Type && $ARGS{'type'} ) { - $Type ||= $ARGS{'type'}; - $RT::Logger->warning("'type' argument is deprecated use 'Type' instead"); -} - my $CustomFields = RT::CustomFields->new($session{'CurrentUser'}); $CustomFields->UnLimit; $CustomFields->FindAllRows if $ShowDisabled; @@ -109,5 +101,6 @@ $CustomFields->LimitToLookupType( $Type ) if $Type; $m->callback(CallbackName => 'MassageCustomFields', CustomFields => $CustomFields); $Format ||= RT->Config->Get('AdminSearchResultFormat')->{'CustomFields'}; +my $Rows = RT->Config->Get('AdminSearchResultRows')->{'CustomFields'} || 50;