summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-03-28 00:30:55 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-03-28 00:30:55 +0200
commitff11129de89460d17ac9fe5c17eb581d3f9490bb (patch)
treeb5fc6b9f88760a44fdf39e3b08bc281fb2b6b3e5 /Bugzilla/Search.pm
parent1bf8f17334f366cb01d608c7ae6852202b8fe657 (diff)
downloadbugzilla-ff11129de89460d17ac9fe5c17eb581d3f9490bb.tar.gz
bugzilla-ff11129de89460d17ac9fe5c17eb581d3f9490bb.tar.xz
Bug 730984: A single whitespace in the Status Whiteboard field generates an invalid SQL query
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index a0b11dde4..c14dbf32e 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1680,7 +1680,11 @@ sub _handle_chart {
$search_args{quoted} = $self->_quote_unless_numeric(\%search_args);
# This should add a "term" selement to %search_args.
$self->do_search_function(\%search_args);
-
+
+ # If term is left empty, then this means the criteria
+ # has no effect and can be ignored.
+ return unless $search_args{term};
+
# All the things here that don't get pulled out of
# %search_args are their original values before
# do_search_function modified them.