diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 18:23:43 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 18:23:43 +0200 |
commit | 255a2bf2f26d69b970b4d263d71e1bab59dc41c1 (patch) | |
tree | e986bb1b8403d964156f846e66fca3aa72b30586 | |
parent | dcc65060dbbae8b7acab0343ee01553a07d83a52 (diff) | |
download | bugzilla-255a2bf2f26d69b970b4d263d71e1bab59dc41c1.tar.gz bugzilla-255a2bf2f26d69b970b4d263d71e1bab59dc41c1.tar.xz |
Bug 601371: Make bug_status_type work as a search query parameter
r=mkanat, a=mkanat (module owner)
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 08406068c..952fc0854 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1234,6 +1234,11 @@ sub _special_parse_bug_status { my ($self) = @_; my $params = $self->_params; return if !defined $params->{'bug_status'}; + # We want to allow the bug_status_type parameter to work normally, + # meaning that this special code should only be activated if we are + # doing the normal "anyexact" search on bug_status. + return if (defined $params->{'bug_status_type'} + and $params->{'bug_status_type'} ne 'anyexact'); my @bug_status = $self->_param_array('bug_status'); # Also include inactive bug statuses, as you can query them. @@ -1405,6 +1410,7 @@ sub _valid_values { my ($input, $valid, $extra_value) = @_; my @result; foreach my $item (@$input) { + $item = trim($item); if (defined $extra_value and $item eq $extra_value) { push(@result, $item); } |