diff options
author | lpsolit%gmail.com <> | 2006-06-20 03:15:17 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-20 03:15:17 +0000 |
commit | 2545c0950c4f0fde8f78b265217fa9f523eff7bf (patch) | |
tree | 5bb305644ad11da196c7613b82743e426e2fd337 /report.cgi | |
parent | Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéri... (diff) | |
download | bugzilla-2545c0950c4f0fde8f78b265217fa9f523eff7bf.tar.gz bugzilla-2545c0950c4f0fde8f78b265217fa9f523eff7bf.tar.bz2 bugzilla-2545c0950c4f0fde8f78b265217fa9f523eff7bf.zip |
Bug 304601: Bugzilla::Config's :locations exports need to be in their own module - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat for the main patch, r=myk for the patch about CGI.pm a=justdave
Bug 328637: Remove all legal_* versioncache arrays - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Bug 110503 - Eliminate versioncache
Diffstat (limited to 'report.cgi')
-rwxr-xr-x | report.cgi | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/report.cgi b/report.cgi index 98fcb2e7f..c46361f1d 100755 --- a/report.cgi +++ b/report.cgi @@ -26,10 +26,9 @@ use lib "."; require "globals.pl"; -use vars qw(@legal_opsys @legal_platform @legal_severity); - use Bugzilla; use Bugzilla::Constants; +use Bugzilla::Field; my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; @@ -48,8 +47,6 @@ if (grep(/^cmd-/, $cgi->param())) { use Bugzilla::Search; -GetVersionTable(); - Bugzilla->login(); my $dbh = Bugzilla->switch_to_shadow_db(); @@ -329,12 +326,12 @@ sub get_names { my ($names, $isnumeric, $field) = @_; # These are all the fields we want to preserve the order of in reports. - my %fields = ('priority' => \@::legal_priority, - 'bug_severity' => \@::legal_severity, - 'rep_platform' => \@::legal_platform, - 'op_sys' => \@::legal_opsys, - 'bug_status' => \@::legal_bug_status, - 'resolution' => [' ', @::legal_resolution]); + my %fields = ('priority' => get_legal_field_values('priority'), + 'bug_severity' => get_legal_field_values('bug_severity'), + 'rep_platform' => get_legal_field_values('rep_platform'), + 'op_sys' => get_legal_field_values('op_sys'), + 'bug_status' => get_legal_field_values('bug_status'), + 'resolution' => [' ', @{get_legal_field_values('resolution')}]); my $field_list = $fields{$field}; my @sorted; |