diff options
author | Frank Becker <Frank@Frank-Becker.de> | 2012-08-09 23:32:25 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-08-09 23:32:25 +0200 |
commit | a63ceb3a4d0c333d72af841f37ab0796823eaba1 (patch) | |
tree | 3f2c88679ced418cc2cc25cd2e59192eb59bed6e /config.cgi | |
parent | 9ec7d139f9ab26fc2cc6986ec72d254d0fdef242 (diff) | |
download | bugzilla-a63ceb3a4d0c333d72af841f37ab0796823eaba1.tar.gz bugzilla-a63ceb3a4d0c333d72af841f37ab0796823eaba1.tar.xz |
Bug 557183: In config.cgi, specify if fields controlled by a parameter are enabled or disabled
r/a=LpSolit
Diffstat (limited to 'config.cgi')
-rwxr-xr-x | config.cgi | 12 |
1 files changed, 12 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); |