From: justdave%bugzilla.org <> Date: Fri, 10 Nov 2006 05:58:53 +0000 (+0000) Subject: Bug 330365: [PostgreSQL] Fix a crash when changing columns after a "specific" search. X-Git-Tag: bugzilla-2.22.2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38439d23db9c4444c914806d7f176bde352d355d;p=thirdparty%2Fbugzilla.git Bug 330365: [PostgreSQL] Fix a crash when changing columns after a "specific" search. r=mkanat, a=myk --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 2567705349..9fe8527691 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -382,14 +382,8 @@ sub init { if (defined $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')); + push(@specialchart, ['content', 'matches', $params->param('content')]); + push(@specialchart, ['short_desc', 'allwords', $params->param('content')]); } my $chartid;