From 79542d43011ee798f0b9b72976b6cb0ef033b84f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 13 Jun 2011 20:14:01 -0700 Subject: Bug 660866: Allow editing of old "boolean chart" searches using the new "custom search" UI controls on the advanced search form. r=mkanat, a=mkanat (module owner) --- Bugzilla/Search/Condition.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Search/Condition.pm') diff --git a/Bugzilla/Search/Condition.pm b/Bugzilla/Search/Condition.pm index 8fe05f065..2268da197 100644 --- a/Bugzilla/Search/Condition.pm +++ b/Bugzilla/Search/Condition.pm @@ -55,6 +55,12 @@ sub as_string { return $term; } +sub as_params { + my ($self) = @_; + return { f => $self->field, o => $self->operator, v => $self->value, + n => scalar $self->negate }; +} + sub negate { my ($self, $value) = @_; if (@_ == 2) { @@ -73,4 +79,4 @@ sub condition { value => $value }); } -1; \ No newline at end of file +1; -- cgit v1.2.3-24-g4f1b