]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 730984: A single whitespace in the Status Whiteboard field generates an invalid...
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 27 Mar 2012 22:32:52 +0000 (00:32 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 27 Mar 2012 22:32:52 +0000 (00:32 +0200)
r=dkl a=LpSolit

Bugzilla/Search.pm

index 89bb92f19a6957f20737f611e646d8e2a0c731cc..841df4acce547f00288097249d1dbcde9e1f93d4 100644 (file)
@@ -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.