diff options
author | endico%mozilla.org <> | 2000-07-14 12:20:16 +0200 |
---|---|---|
committer | endico%mozilla.org <> | 2000-07-14 12:20:16 +0200 |
commit | f2545f51005da0040d3bcbd6e90712b27973d9ac (patch) | |
tree | 4d7eed11f1137a16d0c1048add15e6fa0c95d03f /globals.pl | |
parent | 204f658bad90994892c2a13f289c2252ee30b8c5 (diff) | |
download | bugzilla-f2545f51005da0040d3bcbd6e90712b27973d9ac.tar.gz bugzilla-f2545f51005da0040d3bcbd6e90712b27973d9ac.tar.xz |
change '@::legal_resolution_no_dup' to '@::settable_resolutions'. This a list of resolutions which a bug may be changed to in the bug form and consists of all legal resolutions except 'MOVED' and 'DUPLICATE', since setting a bug to those resolutions requires a special process.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/globals.pl b/globals.pl index 58942ba01..915c0bc18 100644 --- a/globals.pl +++ b/globals.pl @@ -412,10 +412,20 @@ sub GenerateVersionTable { @::legal_opsys = SplitEnumType($cols->{"op_sys,type"}); @::legal_bug_status = SplitEnumType($cols->{"bug_status,type"}); @::legal_resolution = SplitEnumType($cols->{"resolution,type"}); - @::legal_resolution_no_dup = @::legal_resolution; - my $w = lsearch(\@::legal_resolution_no_dup, "DUPLICATE"); + + # 'settable_resolution' is the list of resolutions that may be set + # directly by hand in the bug form. Start with the list of legal + # resolutions and remove 'MOVED' and 'DUPLICATE' because setting + # bugs to those resolutions requires a special process. + # + @::settable_resolution = @::legal_resolution; + my $w = lsearch(\@::settable_resolution, "DUPLICATE"); if ($w >= 0) { - splice(@::legal_resolution_no_dup, $w, 1); + splice(@::settable_resolution, $w, 1); + } + my $z = lsearch(\@::settable_resolution, "MOVED"); + if ($z >= 0) { + splice(@::settable_resolution, $z, 1); } my @list = sort { uc($a) cmp uc($b)} keys(%::versions); @@ -439,9 +449,10 @@ sub GenerateVersionTable { @::legal_components = sort {uc($a) cmp uc($b)} keys(%carray); print FID GenerateCode('@::legal_components'); foreach my $i('product', 'priority', 'severity', 'platform', 'opsys', - 'bug_status', 'resolution', 'resolution_no_dup') { + 'bug_status', 'resolution') { print FID GenerateCode('@::legal_' . $i); } + print FID GenerateCode('@::settable_resolution'); print FID GenerateCode('%::proddesc'); print FID GenerateCode('%::prodmaxvotes'); print FID GenerateCode('$::anyvotesallowed'); |