From f2545f51005da0040d3bcbd6e90712b27973d9ac Mon Sep 17 00:00:00 2001 From: "endico%mozilla.org" <> Date: Fri, 14 Jul 2000 10:20:16 +0000 Subject: 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. --- globals.pl | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'globals.pl') 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'); -- cgit v1.2.3-24-g4f1b