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


git-svn-id: svn://10.0.0.236/trunk@218743 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2007-01-22 04:49:35 +00:00
parent eb4e268436
commit aea02f35f8

View File

@@ -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);
},