diff options
author | Byron Jones <bjones@mozilla.com> | 2013-05-21 07:59:34 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-05-21 07:59:34 +0200 |
commit | a2062da6482fa958a58a7891fc528376c3618be1 (patch) | |
tree | 4471c05fc32f302ff6006be599048a2957982ddd /Bugzilla/Search/Condition.pm | |
parent | 09a62c23f05df3caacd2745d276b846a326be904 (diff) | |
parent | 0b1e410c81430711a602adc56e4fc7667d1c841e (diff) | |
download | bugzilla-a2062da6482fa958a58a7891fc528376c3618be1.tar.gz bugzilla-a2062da6482fa958a58a7891fc528376c3618be1.tar.xz |
merge with bugzilla/4.2
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 2268da197..167b4f01e 100644 --- a/Bugzilla/Search/Condition.pm +++ b/Bugzilla/Search/Condition.pm @@ -32,9 +32,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); |