Bug 143423 - Fix >, >=, <= operators on timestamp fields

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1915 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2014-01-16 14:35:35 +00:00
parent 19487bd376
commit b4aad4c58a
1 changed files with 2 additions and 3 deletions

View File

@ -855,11 +855,10 @@ sub FUNCTIONS
'*' => sub { ThrowUserError('search_changes_without_changed'); },
},
'deadline|creation_ts|delta_ts'.($date_fields ? '|'.$date_fields : '') => {
'lessthan|greaterthan|equals|notequals' => \&_timestamp_compare,
'lessthan|lessthaneq|greaterthan|greaterthaneq|equals|notequals' => \&_timestamp_compare,
},
'days_elapsed' => {
'equals|lessthan|lessthaneq|'.
'greaterthan|greaterthaneq' => \&_days_elapsed,
'lessthan|lessthaneq|greaterthan|greaterthaneq|equals|notequals' => \&_days_elapsed,
'*' => sub { ThrowUserError('search_days_elapsed_non_numeric') },
},
'owner_idle_time' => {