From c751a9d8da14e4f6a4c3713e630dbc0912b9ab85 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Mon, 22 Jan 2007 12:49:35 +0000 Subject: Bug 366243: Permit boolean searches of creation date and last changed date to use relative dates Patch by Joel Peshkin r,a=justdave --- Bugzilla/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, -- cgit v1.2.3-24-g4f1b