diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-28 00:32:52 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-28 00:32:52 +0200 |
commit | 1fa9362dadb35eda9ef913e7d765aabe05465420 (patch) | |
tree | dba1bea30605c34c6f53163c91d34fc26cdbcc6d | |
parent | 122b723664f9db002fcd46bf3c66af9b4029ba9c (diff) | |
download | bugzilla-1fa9362dadb35eda9ef913e7d765aabe05465420.tar.gz bugzilla-1fa9362dadb35eda9ef913e7d765aabe05465420.tar.xz |
Bug 730984: A single whitespace in the Status Whiteboard field generates an invalid SQL query
r=dkl a=LpSolit
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 89bb92f19..841df4acc 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1668,7 +1668,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. |