diff options
Diffstat (limited to 'xt/lib/Bugzilla/Test')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm index 22edf2216..6f3564d0d 100644 --- a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm +++ b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm @@ -71,9 +71,16 @@ sub search_params { } return { chfield => $field, $ch_param => $value }; } + + if ($field eq 'deadline' and $operator eq 'greaterthaneq') { + return { deadlinefrom => $value }; + } + if ($field eq 'deadline' and $operator eq 'lessthaneq') { + return { deadlineto => $value }; + } $field =~ s/\./_/g; - return { $field => $value, "${field}_type" => $self->operator }; + return { $field => $value, "${field}_type" => $operator }; } 1;
\ No newline at end of file |