summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
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;