: Enable toggling of disabled custom fields in list

Couldn’t see any way in 3.6.3 of including disabled custom fields in
listing. Here is a patch against

/share/html/Admin/CustomFields/index.html

which adds this capability, if nobody has already patched this …

PK

— /usr/local/rt/share/html/Admin/CustomFields/index.html 2006-09-26
08:06:31.000000000 -0700
+++ /usr/local/rt/local/html/Admin/CustomFields/index.html 2007-01-17
16:53:08.179362688 -0800
@@ -72,8 +72,10 @@
% }

+ <&|/l&>Include disabled custom fields in listing.

<&|/l&>Only show custom fields for: +All % for (@types) { <% $_->[0] %> % } @@ -82,9 +84,14 @@

<%args>
$type => undef
+$FindDisabledCFs => 0
</%args>
<%INIT>
+undef $type if ($type eq “all”);
my $CustomFields = RT::CustomFields->new($session{‘CurrentUser’});
+if ($FindDisabledCFs) {

  • $CustomFields->FindAllRows();
    +}
    $CustomFields->UnLimit();
    $CustomFields->LimitToLookupType($type) if defined $type;
    $CustomFields->OrderByCols( { FIELD => ‘LookupType’ }, { FIELD =>
    ‘Name’ } );

Philip Kime
NOPS Systems Architect
310 401 0407