From 2545c0950c4f0fde8f78b265217fa9f523eff7bf Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Jun 2006 03:15:17 +0000 Subject: =?UTF-8?q?Bug=20304601:=20Bugzilla::Config's=20:locations=20expor?= =?UTF-8?q?ts=20need=20to=20be=20in=20their=20own=20module=20-=20Patch=20b?= =?UTF-8?q?y=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmka?= =?UTF-8?q?nat=20for=20the=20main=20patch,=20r=3Dmyk=20for=20the=20patch?= =?UTF-8?q?=20about=20CGI.pm=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 328637: Remove all legal_* versioncache arrays - Patch by Frédéric Buclin r=mkanat a=justdave Bug 110503 - Eliminate versioncache --- process_bug.cgi | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index ca72015a2..88377c78e 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -64,15 +64,6 @@ use Bugzilla::Keyword; use Bugzilla::Flag; use Bugzilla::FlagType; -# Shut up misguided -w warnings about "used only once": - -use vars qw(%legal_opsys - %legal_platform - %legal_priority - %settable_resolution - %legal_severity - ); - my $user = Bugzilla->login(LOGIN_REQUIRED); my $whoid = $user->id; my $grouplist = $user->groups_as_string; @@ -266,8 +257,6 @@ if ($cgi->cookie("BUGLIST") && defined $cgi->param('id')) { $vars->{'bug_list'} = \@bug_list; } -GetVersionTable(); - foreach my $field_name ('product', 'component', 'version') { defined($cgi->param($field_name)) || ThrowCodeError('undefined_field', { field => $field_name }); @@ -639,10 +628,10 @@ if (defined $cgi->param('id')) { check_field('target_milestone', scalar $cgi->param('target_milestone'), [map($_->name, @{$prod_obj->milestones})]); } - check_field('rep_platform', scalar $cgi->param('rep_platform'), \@::legal_platform); - check_field('op_sys', scalar $cgi->param('op_sys'), \@::legal_opsys); - check_field('priority', scalar $cgi->param('priority'), \@::legal_priority); - check_field('bug_severity', scalar $cgi->param('bug_severity'), \@::legal_severity); + check_field('rep_platform', scalar $cgi->param('rep_platform')); + check_field('op_sys', scalar $cgi->param('op_sys')); + check_field('priority', scalar $cgi->param('priority')); + check_field('bug_severity', scalar $cgi->param('bug_severity')); # Those fields only have to exist. We don't validate their value here. foreach my $field_name ('bug_file_loc', 'short_desc', 'longdesclength') { @@ -1173,7 +1162,7 @@ SWITCH: for ($cgi->param('knob')) { /^(resolve|change_resolution)$/ && CheckonComment( "resolve" ) && do { # Check here, because its the only place we require the resolution check_field('resolution', scalar $cgi->param('resolution'), - \@::settable_resolution); + Bugzilla::Bug->settable_resolutions); # don't resolve as fixed while still unresolved blocking bugs if (Param("noresolveonopenblockers") -- cgit v1.2.1