From 1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 9 Oct 2007 15:34:41 +0000 Subject: Bug 387672: Move BUG_STATE_OPEN and is_open_state() into Status.pm - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/BugChange.pm | 2 +- Bugzilla/Config/Common.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Config') diff --git a/Bugzilla/Config/BugChange.pm b/Bugzilla/Config/BugChange.pm index 65b2aec96..aec6e2428 100644 --- a/Bugzilla/Config/BugChange.pm +++ b/Bugzilla/Config/BugChange.pm @@ -48,7 +48,7 @@ sub get_param_list { # and bug_status.is_open is not yet defined (hence the eval), so we use # the bug statuses above as they are still hardcoded. eval { - my @current_closed_states = map {$_->name} Bugzilla::Status::closed_bug_statuses(); + my @current_closed_states = map {$_->name} closed_bug_statuses(); # If no closed state was found, use the default list above. @closed_bug_statuses = @current_closed_states if scalar(@current_closed_states); }; diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 2e5e7d15d..03e97d6a1 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -170,7 +170,7 @@ sub check_opsys { sub check_bug_status { my $bug_status = shift; - my @closed_bug_statuses = map {$_->name} Bugzilla::Status::closed_bug_statuses(); + my @closed_bug_statuses = map {$_->name} closed_bug_statuses(); if (lsearch(\@closed_bug_statuses, $bug_status) < 0) { return "Must be a valid closed status: one of " . join(', ', @closed_bug_statuses); } -- cgit v1.2.3-24-g4f1b