From 93ed3ae8b3523b9e62597d1cc49de1f715648925 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Tue, 7 Mar 2006 05:42:09 +0000 Subject: Bug 282628: Move OpenStates and IsOpenedState out of globals.pl Patch By Max Kanat-Alexander r=wicked, a=myk --- checksetup.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index 5d3a2e540..ab847674b 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1449,6 +1449,9 @@ import Bugzilla::Util qw(bz_crypt trim html_quote is_7bit_clean); require Bugzilla::User; import Bugzilla::User qw(insert_new_user); +require Bugzilla::Bug; +import Bugzilla::Bug qw(is_open_state); + # globals.pl clears the PATH, but File::Find uses Cwd::cwd() instead of # Cwd::getcwd(), which we need to do because `pwd` isn't in the path - see # http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-09/msg00115.html @@ -3545,7 +3548,7 @@ if (!$series_exists) { $data{$fields[$i]}{$numbers[0]} = $numbers[$i + 1]; # Keep a total of the number of open bugs for this day - if (IsOpenedState($fields[$i])) { + if (is_open_state($fields[$i])) { $data{$open_name}{$numbers[0]} += $numbers[$i + 1]; } } @@ -4120,7 +4123,7 @@ if (@$broken_nonopen_series) { join("&", map { "bug_status=" . url_quote($_) } ('UNCONFIRMED', 'NEW', 'ASSIGNED', 'REOPENED')); my $open_bugs_query_base_new = - join("&", map { "bug_status=" . url_quote($_) } OpenStates()); + join("&", map { "bug_status=" . url_quote($_) } BUG_STATE_OPEN); my $sth_openbugs_series = $dbh->prepare("SELECT series_id FROM series WHERE query IN (?, ?)"); -- cgit v1.2.3-24-g4f1b