]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 366243: Permit boolean searches of creation date and last changed date to use...
authorbugreport%peshkin.net <>
Mon, 22 Jan 2007 12:49:35 +0000 (12:49 +0000)
committerbugreport%peshkin.net <>
Mon, 22 Jan 2007 12:49:35 +0000 (12:49 +0000)
Patch by Joel Peshkin <bugreport@peshkin.net>
r,a=justdave

Bugzilla/Search.pm

index 9215dc70d544b1f3892a64ec5d967a238609bb3a..ffe8e74f931bfb8392d0bc2e8057ec591b4f9771 100644 (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);
         },