diff options
author | bugreport%peshkin.net <> | 2007-01-22 12:49:35 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2007-01-22 12:49:35 +0000 |
commit | c751a9d8da14e4f6a4c3713e630dbc0912b9ab85 (patch) | |
tree | 325b01bf487b05a53dc1d14d694775ab8435954c | |
parent | 7c023b6859219c96960d4efe854fc8988cc22809 (diff) | |
download | bugs-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar bugs-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar.gz bugs-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar.bz2 bugs-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar.xz bugs-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.zip |
Bug 366243: Permit boolean searches of creation date and last changed date to use relative dates
Patch by Joel Peshkin <bugreport@peshkin.net>
r,a=justdave
-rw-r--r-- | Bugzilla/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 9215dc70d..ffe8e74f9 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -643,7 +643,7 @@ sub init { "^content," => sub { ThrowUserError("search_content_without_matches"); }, - "^deadline,(?:lessthan|greaterthan|equals|notequals),(-|\\+)?(\\d+)([dDwWmMyY])\$" => sub { + "^(?:deadline|creation_ts|delta_ts),(?:lessthan|greaterthan|equals|notequals),(?:-|\\+)?(?:\\d+)(?:[dDwWmMyY])\$" => sub { $v = SqlifyDate($v); $q = $dbh->quote($v); }, |