diff options
author | mkanat%kerio.com <> | 2006-03-07 06:42:09 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2006-03-07 06:42:09 +0100 |
commit | 93ed3ae8b3523b9e62597d1cc49de1f715648925 (patch) | |
tree | 691aa59ef033d8f23b920842558c68c52bae43f3 /checksetup.pl | |
parent | eb411e0d6a8848ff925ca13f42a04da1a7591284 (diff) | |
download | bugzilla-93ed3ae8b3523b9e62597d1cc49de1f715648925.tar.gz bugzilla-93ed3ae8b3523b9e62597d1cc49de1f715648925.tar.xz |
Bug 282628: Move OpenStates and IsOpenedState out of globals.pl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 7 |
1 files changed, 5 insertions, 2 deletions
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 (?, ?)"); |