diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-04-04 20:00:15 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-04-04 20:00:15 +0200 |
commit | 38909eff20b14f7e063f8a6c71b0fe29a2b62bae (patch) | |
tree | c52abf2fea7a032c226f389ea048be6f0eef30e2 /Bugzilla | |
parent | 843a508c64afc49e143976752a48ac1f2ae64b01 (diff) | |
download | bugs-38909eff20b14f7e063f8a6c71b0fe29a2b62bae.tar bugs-38909eff20b14f7e063f8a6c71b0fe29a2b62bae.tar.gz bugs-38909eff20b14f7e063f8a6c71b0fe29a2b62bae.tar.bz2 bugs-38909eff20b14f7e063f8a6c71b0fe29a2b62bae.tar.xz bugs-38909eff20b14f7e063f8a6c71b0fe29a2b62bae.zip |
Bug 58179: End date not included in the Search By Change History section
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 7bf7e69f6..64642774d 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1414,6 +1414,11 @@ sub _special_parse_chfield { $clause->add($from_clause); } if ($date_to ne '') { + # chfieldto is supposed to be a relative date or a date of the form + # YYYY-MM-DD, i.e. without the time appended to it. We append the + # time ourselves so that the end date is correctly taken into account. + $date_to .= ' 23:59:59' if $date_to =~ /^\d{4}-\d{1,2}-\d{1,2}$/; + my $to_clause = new Bugzilla::Search::Clause('OR'); foreach my $field (@fields) { $to_clause->add($field, 'changedbefore', $date_to); |