From a63ceb3a4d0c333d72af841f37ab0796823eaba1 Mon Sep 17 00:00:00 2001 From: Frank Becker Date: Thu, 9 Aug 2012 23:32:25 +0200 Subject: Bug 557183: In config.cgi, specify if fields controlled by a parameter are enabled or disabled r/a=LpSolit --- config.cgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config.cgi') 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); -- cgit v1.2.3-24-g4f1b