diff options
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 (?, ?)"); |