diff options
author | lpsolit%gmail.com <> | 2005-10-31 06:31:27 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-31 06:31:27 +0100 |
commit | 1254fcb8c43defcbce99713f5cd85a104670895e (patch) | |
tree | 3b842a5b96f429d0db2d5ade3ba409cf1fae7e5a /checksetup.pl | |
parent | cf3aa532ea51a41b02c8ea73db254d01c03280ba (diff) | |
download | bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.gz bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.xz |
Bug 304075: Eliminate use of $::userid from Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/checksetup.pl b/checksetup.pl index d04a07b7c..c728c4636 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3427,10 +3427,6 @@ if (!$series_exists) { my $all_name = "-All-"; my $open_name = "All Open"; - # We can't give the Series we create a meaningful owner; that's not a big - # problem. But we do need to set this global, otherwise Series.pm objects. - $::userid = 0; - my $products = $dbh->selectall_arrayref("SELECT name FROM products"); foreach my $product ((map { $_->[0] } @$products), "-All-") { @@ -3448,9 +3444,10 @@ if (!$series_exists) { $queries{$_} = ($query_prod . "resolution=$_") foreach (@resolutions); foreach my $field (@fields) { - # Create a Series for each field in this product + # Create a Series for each field in this product. + # user ID = 0 is used. my $series = new Bugzilla::Series(undef, $product, $all_name, - $field, $::userid, 1, + $field, 0, 1, $queries{$field}, 1); $series->writeToDatabase(); $seriesids{$field} = $series->{'series_id'}; @@ -3461,7 +3458,7 @@ if (!$series_exists) { my @openedstatuses = ("UNCONFIRMED", "NEW", "ASSIGNED", "REOPENED"); my $query = join("&", map { "bug_status=$_" } @openedstatuses); my $series = new Bugzilla::Series(undef, $product, $all_name, - $open_name, $::userid, 1, + $open_name, 0, 1, $query_prod . $query, 1); $series->writeToDatabase(); $seriesids{$open_name} = $series->{'series_id'}; |