summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-22 07:15:04 +0200
committerlpsolit%gmail.com <>2006-05-22 07:15:04 +0200
commit29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40 (patch)
treeab2c9bc723057e40534a462ce13a23961f8f82d3 /globals.pl
parent1c1c8c15d62b29a87c8f04aded86406828c2ecf8 (diff)
downloadbugzilla-29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40.tar.gz
bugzilla-29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40.tar.xz
Bug 332522: Remove $::prodmaxvotes - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl15
1 files changed, 3 insertions, 12 deletions
diff --git a/globals.pl b/globals.pl
index 4798c2b49..bde05517b 100644
--- a/globals.pl
+++ b/globals.pl
@@ -49,7 +49,6 @@ sub globals_pl_sillyness {
$zz = @main::legal_platform;
$zz = @main::legal_priority;
$zz = @main::legal_severity;
- $zz = @main::prodmaxvotes;
}
#
@@ -99,16 +98,8 @@ $::SIG{PIPE} = 'IGNORE';
sub GenerateVersionTable {
my $dbh = Bugzilla->dbh;
- my @line;
- SendSQL("SELECT name, votesperuser " .
- "FROM products ORDER BY name");
- while (@line = FetchSQLData()) {
- my ($p, $votesperuser) = (@line);
- $::prodmaxvotes{$p} = $votesperuser;
- }
-
@::log_columns = $dbh->bz_table_columns('bugs');
-
+
foreach my $i ("bug_id", "creation_ts", "delta_ts", "lastdiffed") {
my $w = lsearch(\@::log_columns, $i);
if ($w >= 0) {
@@ -161,8 +152,8 @@ sub GenerateVersionTable {
'*::legal_platform', '*::legal_opsys',
'*::legal_bug_status', '*::legal_resolution']));
- print $fh (Data::Dumper->Dump([\@::settable_resolution, \%::prodmaxvotes],
- ['*::settable_resolution', '*::prodmaxvotes']));
+ print $fh (Data::Dumper->Dump([\@::settable_resolution],
+ ['*::settable_resolution']));
print $fh "1;\n";
close $fh;