diff options
author | ghendricks%novell.com <> | 2009-07-17 22:40:09 +0000 |
---|---|---|
committer | ghendricks%novell.com <> | 2009-07-17 22:40:09 +0000 |
commit | e394756f42902de5eade4f6738127c25fa2bcef7 (patch) | |
tree | bbb29b8118eb619d791ea4605207befa1a076692 /query.cgi | |
parent | Bug 472274: Solid black line on the timetracking summary row of buglist looks... (diff) | |
download | bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.gz bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.bz2 bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.zip |
Bug 456743 - Add the ability to disable field values (mark them as inactive)
patch by ghendricks@novell.com r=LpSolit, a=LpSolit
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -232,11 +232,6 @@ if (Bugzilla->params->{'usetargetmilestone'}) { $vars->{'have_keywords'} = Bugzilla::Keyword::keyword_count(); -my $legal_resolutions = get_legal_field_values('resolution'); -push(@$legal_resolutions, "---"); # Oy, what a hack. -# Another hack - this array contains "" for some reason. See bug 106589. -$vars->{'resolution'} = [grep ($_, @$legal_resolutions)]; - my @chfields; push @chfields, "[Bug creation]"; @@ -262,11 +257,12 @@ if (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { } @chfields = (sort(@chfields)); $vars->{'chfield'} = \@chfields; -$vars->{'bug_status'} = get_legal_field_values('bug_status'); -$vars->{'rep_platform'} = get_legal_field_values('rep_platform'); -$vars->{'op_sys'} = get_legal_field_values('op_sys'); -$vars->{'priority'} = get_legal_field_values('priority'); -$vars->{'bug_severity'} = get_legal_field_values('bug_severity'); +$vars->{'bug_status'} = Bugzilla::Field->new({name => 'bug_status'})->legal_values; +$vars->{'rep_platform'} = Bugzilla::Field->new({name => 'rep_platform'})->legal_values; +$vars->{'op_sys'} = Bugzilla::Field->new({name => 'op_sys'})->legal_values; +$vars->{'priority'} = Bugzilla::Field->new({name => 'priority'})->legal_values; +$vars->{'bug_severity'} = Bugzilla::Field->new({name => 'bug_severity'})->legal_values; +$vars->{'resolution'} = Bugzilla::Field->new({name => 'resolution'})->legal_values; # Boolean charts my @fields = Bugzilla->get_fields({ obsolete => 0 }); |