summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig.cgi12
-rw-r--r--template/en/default/config.rdf.tmpl3
2 files changed, 15 insertions, 0 deletions
diff --git a/config.cgi b/config.cgi
index bb6a47349..7dc2e3afb 100755
--- a/config.cgi
+++ b/config.cgi
@@ -107,6 +107,18 @@ my @fields = @{Bugzilla::Field->match({obsolete => 0})};
if (!$user->is_timetracker) {
@fields = grep { $_->name !~ /^(estimated_time|remaining_time|work_time|percentage_complete|deadline)$/ } @fields;
}
+
+my %FIELD_PARAMS = (
+ classification => 'useclassification',
+ target_milestone => 'usetargetmilestone',
+ qa_contact => 'useqacontact',
+ status_whiteboard => 'usestatuswhiteboard',
+ see_also => 'use_see_also',
+);
+foreach my $field (@fields) {
+ my $param = $FIELD_PARAMS{$field->name};
+ $field->{is_active} = Bugzilla->params->{$param} if $param;
+}
$vars->{'field'} = \@fields;
display_data($vars);
diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl
index afc511054..353cecf52 100644
--- a/template/en/default/config.rdf.tmpl
+++ b/template/en/default/config.rdf.tmpl
@@ -268,6 +268,9 @@
<bz:type_desc>[% field_types.${item.type} FILTER html %]</bz:type_desc>
<bz:enter_bug>[% item.enter_bug FILTER html %]</bz:enter_bug>
[% END %]
+ [% IF item.is_active.defined %]
+ <bz:is_active>[% item.is_active FILTER html %]</bz:is_active>
+ [% END %]
</bz:field>
</li>
[% END %]