summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search/Condition.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Search/Condition.pm')
-rw-r--r--Bugzilla/Search/Condition.pm9
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);