diff options
author | Simon Green <sgreen+mozilla@redhat.com> | 2012-06-08 15:03:13 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-06-08 15:03:13 +0800 |
commit | e0bd7772190fa654c7c65e1df98b60fa96c4d15d (patch) | |
tree | 268509de0bfa14e697cdf9b9f11013a093bca89f /Bugzilla | |
parent | ce2f6f61a32e054dd0db2ac15f0759166de124c4 (diff) | |
download | bugs-e0bd7772190fa654c7c65e1df98b60fa96c4d15d.tar bugs-e0bd7772190fa654c7c65e1df98b60fa96c4d15d.tar.gz bugs-e0bd7772190fa654c7c65e1df98b60fa96c4d15d.tar.bz2 bugs-e0bd7772190fa654c7c65e1df98b60fa96c4d15d.tar.xz bugs-e0bd7772190fa654c7c65e1df98b60fa96c4d15d.zip |
Bug 760075: Fix error thrown when an allwords search starts with or ends with a space
r=glob, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 9024afb28..3d9392769 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -2515,6 +2515,7 @@ sub _multiselect_multiple { my @terms; foreach my $word (@words) { + next if $word eq ''; $args->{value} = $word; $args->{quoted} = $dbh->quote($word); push(@terms, $self->_multiselect_term($args)); @@ -2682,15 +2683,14 @@ sub _anyexact { sub _anywordsubstr { my ($self, $args) = @_; - my ($full_field, $value) = @$args{qw(full_field value)}; - + my @terms = $self->_substring_terms($args); $args->{term} = join("\n\tOR ", @terms); } sub _allwordssubstr { my ($self, $args) = @_; - + my @terms = $self->_substring_terms($args); $args->{term} = join("\n\tAND ", @terms); } |