]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 251567: Make sure "find a specific bug" doesn't miss exact matches in summary
authorbugreport%peshkin.net <>
Sat, 17 Jul 2004 08:33:51 +0000 (08:33 +0000)
committerbugreport%peshkin.net <>
Sat, 17 Jul 2004 08:33:51 +0000 (08:33 +0000)
r=justdave
a=justdave

Bugzilla/Search.pm

index 42969cd2d5cb462679def6b681cacdaa7a52577a..261e1ae0af54e67ea12bcadae4e551a58b4318d0 100644 (file)
@@ -306,7 +306,15 @@ sub init {
     }
 
     if (defined $params->param('content')) {
-        push(@specialchart, ['content', 'matches', $params->param('content')]);
+        # Append a new chart implementing content quicksearch
+        my $chart;
+        for ($chart = 0 ; $params->param("field$chart-0-0") ; $chart++) {};
+        $params->param("field$chart-0-0", 'content');
+        $params->param("type$chart-0-0", 'matches');
+        $params->param("value$chart-0-0", $params->param('content'));
+        $params->param("field$chart-0-1", 'short_desc');
+        $params->param("type$chart-0-1", 'allwords');
+        $params->param("value$chart-0-1", $params->param('content'));
     }
 
     my $chartid;