diff options
author | terry%mozilla.org <> | 1999-05-06 06:18:38 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-06 06:18:38 +0200 |
commit | 5100352d43d8f1426360bbc3906d832c0447191b (patch) | |
tree | bd5934c1f0abf624e286e3f2fb85fb1b69e3fb01 /buglist.cgi | |
parent | daffcd74e36eab5a9813f5187329fb396f8d7b6d (diff) | |
download | bugzilla-5100352d43d8f1426360bbc3906d832c0447191b.tar.gz bugzilla-5100352d43d8f1426360bbc3906d832c0447191b.tar.xz |
Allow querying of bug creation times.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi index a8c10d1c2..9d42528ed 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -359,7 +359,23 @@ sub SqlifyDate { } - +if (defined $ref) { + my $which = lsearch($ref, "[Bug creation]"); + if ($which >= 0) { + splice(@$ref, $which, 1); + $query .= "and bugs.creation_ts >= " . + SqlifyDate($::FORM{'chfieldfrom'}) . "\n"; + my $to = $::FORM{'chfieldto'}; + if (defined $to) { + $to = trim($to); + if ($to ne "" && $to !~ /^now$/i) { + $query .= "and bugs.creation_ts <= " . + SqlifyDate($to) . "\n"; + } + } + } +} + if (defined $ref && 0 < @$ref) { |