From: Frédéric Buclin Date: Tue, 27 Mar 2012 22:30:55 +0000 (+0200) Subject: Bug 730984: A single whitespace in the Status Whiteboard field generates an invalid... X-Git-Tag: bugzilla-4.3.1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff11129de89460d17ac9fe5c17eb581d3f9490bb;p=thirdparty%2Fbugzilla.git Bug 730984: A single whitespace in the Status Whiteboard field generates an invalid SQL query r=dkl a=LpSolit --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index a0b11dde46..c14dbf32ef 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.