From: Max Kanat-Alexander Date: Sat, 2 Oct 2010 19:59:40 +0000 (-0700) Subject: Bug 601394 - Make xt/search.t test the deadlinefrom and deadline to search X-Git-Tag: bugzilla-4.1.1~246 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e3b3b4032f9b6a76a43abe257fe73ae3a686128;p=thirdparty%2Fbugzilla.git Bug 601394 - Make xt/search.t test the deadlinefrom and deadline to search query parameters r=mkanat, a=mkanat (module owner) --- diff --git a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm index 22edf22160..6f3564d0d2 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