diff options
author | Byron Jones <bjones@mozilla.com> | 2013-05-10 10:18:12 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-05-10 10:18:12 +0200 |
commit | a7859e10d9456dbe17373ebfdd1a22cc88a4c754 (patch) | |
tree | 43f652565a11cc595f4670e28bbf0761755c7831 /Bugzilla/Search/Condition.pm | |
parent | 2baddffae7097f9c4181b9115489017f90454292 (diff) | |
download | bugzilla-a7859e10d9456dbe17373ebfdd1a22cc88a4c754.tar.gz bugzilla-a7859e10d9456dbe17373ebfdd1a22cc88a4c754.tar.xz |
Bug 828344: "contains all of the words" no longer looks for all words within the same comment or flag
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Search/Condition.pm')
-rw-r--r-- | Bugzilla/Search/Condition.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/Search/Condition.pm b/Bugzilla/Search/Condition.pm index 4975775af..eab4ab79d 100644 --- a/Bugzilla/Search/Condition.pm +++ b/Bugzilla/Search/Condition.pm @@ -21,9 +21,16 @@ sub new { } sub field { return $_[0]->{field} } -sub operator { return $_[0]->{operator} } sub value { return $_[0]->{value} } +sub operator { + my ($self, $value) = @_; + if (@_ == 2) { + $self->{operator} = $value; + } + return $self->{operator}; +} + sub fov { my ($self) = @_; return ($self->field, $self->operator, $self->value); |