summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authormkanat%kerio.com <>2006-03-07 06:42:09 +0100
committermkanat%kerio.com <>2006-03-07 06:42:09 +0100
commit93ed3ae8b3523b9e62597d1cc49de1f715648925 (patch)
tree691aa59ef033d8f23b920842558c68c52bae43f3 /Bugzilla/Search
parenteb411e0d6a8848ff925ca13f42a04da1a7591284 (diff)
downloadbugzilla-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')
-rw-r--r--Bugzilla/Search/Quicksearch.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index 365e56469..4d9958c63 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -26,6 +26,8 @@ use strict;
use Bugzilla;
use Bugzilla::Config;
use Bugzilla::Error;
+use Bugzilla::Constants;
+use Bugzilla::Bug;
use base qw(Exporter);
@Bugzilla::Search::Quicksearch::EXPORT = qw(quicksearch);
@@ -153,12 +155,12 @@ sub quicksearch {
my @words = splitString($searchstring);
my $searchComments = $#words < Param('quicksearch_comment_cutoff');
- my @openStates = &::OpenStates();
+ my @openStates = BUG_STATE_OPEN;
my @closedStates;
my (%states, %resolutions);
foreach (@::legal_bug_status) {
- push(@closedStates, $_) unless &::IsOpenedState($_);
+ push(@closedStates, $_) unless is_open_state($_);
}
foreach (@openStates) { $states{$_} = 1 }
if ($words[0] eq 'ALL') {