summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2010-01-12 17:11:20 +0100
committerlpsolit%gmail.com <>2010-01-12 17:11:20 +0100
commit47193c652200dce8051f3ae75848e1cc45f0427d (patch)
tree26e1115bb25662044c180597cba82fae1399f9df
parent0518013ac2119875fe675c0d25f4e7d190f78074 (diff)
downloadbugzilla-47193c652200dce8051f3ae75848e1cc45f0427d.tar.gz
bugzilla-47193c652200dce8051f3ae75848e1cc45f0427d.tar.xz
Bug 509030: "Changes older than" in Advanced Search is sometimes ignored - Patch by Frédéric Buclin <LpSolit@gmail.com> r=gerv a=LpSolit
-rw-r--r--Bugzilla/CGI.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index bebff2d63..8a0e2efe9 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -173,7 +173,8 @@ sub clean_search_url {
# chfieldto is set to "Now" by default in query.cgi. But if none
# of the other chfield parameters are set, it's meaningless.
if (!defined $self->param('chfieldfrom') && !$self->param('chfield')
- && !defined $self->param('chfieldvalue'))
+ && !defined $self->param('chfieldvalue') && $self->param('chfieldto')
+ && lc($self->param('chfieldto')) eq 'now')
{
$self->delete('chfieldto');
}