Commit 7e3b3b40 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 601394 - Make xt/search.t test the deadlinefrom and deadline to search

query parameters r=mkanat, a=mkanat (module owner)
parent 38230573
...@@ -71,9 +71,16 @@ sub search_params { ...@@ -71,9 +71,16 @@ sub search_params {
} }
return { chfield => $field, $ch_param => $value }; 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; $field =~ s/\./_/g;
return { $field => $value, "${field}_type" => $self->operator }; return { $field => $value, "${field}_type" => $operator };
} }
1; 1;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment