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 --- enter_bug.cgi | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 5b5f3cf77..54b3f818b 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -46,15 +46,9 @@ use Bugzilla::Product; use Bugzilla::Classification; use Bugzilla::Keyword; use Bugzilla::Token; +use Bugzilla::Field; require "globals.pl"; -use vars qw( - @legal_opsys - @legal_platform - @legal_priority - @legal_severity -); - my $user = Bugzilla->login(LOGIN_REQUIRED); my $cloned_bug; @@ -312,8 +306,6 @@ if ($cloned_bug_id) { $cloned_bug = new Bugzilla::Bug($cloned_bug_id, $user->id); } -GetVersionTable(); - if (scalar(@{$product->components}) == 1) { # Only one component; just pick it. $cgi->param('component', $product->components->[0]->name); @@ -323,10 +315,10 @@ my %default; $vars->{'product'} = $product; -$vars->{'priority'} = \@legal_priority; -$vars->{'bug_severity'} = \@legal_severity; -$vars->{'rep_platform'} = \@legal_platform; -$vars->{'op_sys'} = \@legal_opsys; +$vars->{'priority'} = get_legal_field_values('priority'); +$vars->{'bug_severity'} = get_legal_field_values('bug_severity'); +$vars->{'rep_platform'} = get_legal_field_values('rep_platform'); +$vars->{'op_sys'} = get_legal_field_values('op_sys'); $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count(); -- cgit v1.2.1