From aea02f35f8b9da10555d7c50953dad4459128e21 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Mon, 22 Jan 2007 04:49:35 +0000 Subject: [PATCH] Bug 366243: Permit boolean searches of creation date and last changed date to use relative dates Patch by Joel Peshkin r,a=justdave git-svn-id: svn://10.0.0.236/trunk@218743 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index 9215dc70d54..ffe8e74f931 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/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); },