Commit c751a9d8 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

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
parent 7c023b68
......@@ -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);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment