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 /Bugzilla/Search.pm | |
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 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 9b6c5bca7..0914d69b0 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -41,6 +41,7 @@ use Bugzilla::Constants; use Bugzilla::Group; use Bugzilla::User; use Bugzilla::Field; +use Bugzilla::Bug; use Date::Format; use Date::Parse; @@ -186,11 +187,11 @@ sub init { $params->delete('bug_status'); } elsif ($bug_statuses[0] eq '__open__') { - $params->param('bug_status', map(&::IsOpenedState($_) ? $_ : undef, + $params->param('bug_status', map(is_open_state($_) ? $_ : undef, @::legal_bug_status)); } elsif ($bug_statuses[0] eq "__closed__") { - $params->param('bug_status', map(&::IsOpenedState($_) ? undef : $_, + $params->param('bug_status', map(is_open_state($_) ? undef : $_, @::legal_bug_status)); } } |