aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2007-01-22 12:49:35 +0000
committerbugreport%peshkin.net <>2007-01-22 12:49:35 +0000
commitc751a9d8da14e4f6a4c3713e630dbc0912b9ab85 (patch)
tree325b01bf487b05a53dc1d14d694775ab8435954c
parentBug 367654: Param('upgrade_notification') eq 'development_snapshot' should ca... (diff)
downloadbugzilla-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar.gz
bugzilla-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.tar.bz2
bugzilla-c751a9d8da14e4f6a4c3713e630dbc0912b9ab85.zip
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
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
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);
},