summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-09 17:34:41 +0200
committerlpsolit%gmail.com <>2007-10-09 17:34:41 +0200
commit1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3 (patch)
treefa2b295246b059f0a3524c74972566c14b59ce1f /Bugzilla/Config
parent73553366455cb23a6df1847d67bde74386c87742 (diff)
downloadbugzilla-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.gz
bugzilla-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.xz
Bug 387672: Move BUG_STATE_OPEN and is_open_state() into Status.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r--Bugzilla/Config/BugChange.pm2
-rw-r--r--Bugzilla/Config/Common.pm2
2 files changed, 2 insertions, 2 deletions
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);
}