From: bugreport%peshkin.net <> Date: Mon, 22 Jan 2007 12:49:35 +0000 (+0000) Subject: Bug 366243: Permit boolean searches of creation date and last changed date to use... X-Git-Tag: bugzilla-2.23.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c751a9d8da14e4f6a4c3713e630dbc0912b9ab85;p=thirdparty%2Fbugzilla.git Bug 366243: Permit boolean searches of creation date and last changed date to use relative dates Patch by Joel Peshkin r,a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 9215dc70d5..ffe8e74f93 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); },