summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-17 10:33:51 +0200
committerbugreport%peshkin.net <>2004-07-17 10:33:51 +0200
commitaba9ca24e778b821cf26338a2ab1fb9d169a7ada (patch)
tree433083ac781c87fd2c982e488af05e96ca690ff9 /Bugzilla/Search.pm
parentc6cd49e6d4fcb65be7b77629db3d542af8e7cc2f (diff)
downloadbugzilla-aba9ca24e778b821cf26338a2ab1fb9d169a7ada.tar.gz
bugzilla-aba9ca24e778b821cf26338a2ab1fb9d169a7ada.tar.xz
Bug 251567: Make sure "find a specific bug" doesn't miss exact matches in summary
r=justdave a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 42969cd2d..261e1ae0a 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -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;