summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-17 07:29:16 +0200
committerlpsolit%gmail.com <>2007-08-17 07:29:16 +0200
commitff5637d1173502aea6527ed917ab963e1b159b6e (patch)
tree9f9e316300612eae6f11772e2e9b591869d82cee
parenta61497d246ff74cd33f370ec19d99abaceff7728 (diff)
downloadbugzilla-ff5637d1173502aea6527ed917ab963e1b159b6e.tar.gz
bugzilla-ff5637d1173502aea6527ed917ab963e1b159b6e.tar.xz
Bug 391710: checksetup.pl fails when fixing broken series due to BUG_STATE_OPEN pointing to the not yet created bug_status.is_open column - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
-rw-r--r--Bugzilla/Install/DB.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index aa3c89d23..d2abe9da6 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -22,7 +22,6 @@ package Bugzilla::Install::DB;
use strict;
-use Bugzilla::Bug qw(BUG_STATE_OPEN is_open_state);
use Bugzilla::Constants;
use Bugzilla::Hook;
use Bugzilla::Install::Util qw(indicate_progress);
@@ -1967,7 +1966,7 @@ sub _copy_old_charts_into_database {
$data{$fields[$i]}{$numbers[0]} = $numbers[$i + 1];
# Keep a total of the number of open bugs for this day
- if (is_open_state($fields[$i])) {
+ if (grep { $_ eq $fields[$i] } @openedstatuses) {
$data{$open_name}{$numbers[0]} += $numbers[$i + 1];
}
}
@@ -2441,7 +2440,8 @@ sub _fix_broken_all_closed_series {
join("&", map { "bug_status=" . url_quote($_) }
('UNCONFIRMED', 'NEW', 'ASSIGNED', 'REOPENED'));
my $open_bugs_query_base_new =
- join("&", map { "bug_status=" . url_quote($_) } BUG_STATE_OPEN);
+ join("&", map { "bug_status=" . url_quote($_) }
+ ('NEW', 'REOPENED', 'ASSIGNED', 'UNCONFIRMED'));
my $sth_openbugs_series =
$dbh->prepare("SELECT series_id FROM series WHERE query IN (?, ?)");
# Statement to find the series which has collected the most data.