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

query parameters
r=mkanat, a=mkanat (module owner)


git-svn-id: svn://10.0.0.236/trunk@261322 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-10-02 20:04:32 +00:00
parent c5429db949
commit c6f2d0a8e8
2 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
7506
7507

View File

@ -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;