Commit aae01c43 authored by tara%tequilarista.org's avatar tara%tequilarista.org

Landing fix for keyword column handling--bug #39647

parent 2a5ba50f
...@@ -810,7 +810,7 @@ DefCol("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys"); ...@@ -810,7 +810,7 @@ DefCol("os", "substring(bugs.op_sys, 1, 4)", "OS", "bugs.op_sys");
DefCol("target_milestone", "bugs.target_milestone", "TargetM", DefCol("target_milestone", "bugs.target_milestone", "TargetM",
"bugs.target_milestone"); "bugs.target_milestone");
DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc"); DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc");
DefCol("keywords", "bugs.keywords", "Keywords", "bugs.keywords"); DefCol("keywords", "bugs.keywords", "Keywords", "bugs.keywords", 5);
my @collist; my @collist;
if (defined $::COOKIE{'COLUMNLIST'}) { if (defined $::COOKIE{'COLUMNLIST'}) {
...@@ -978,8 +978,10 @@ my @th; ...@@ -978,8 +978,10 @@ my @th;
foreach my $c (@collist) { foreach my $c (@collist) {
if (exists $::needquote{$c}) { if (exists $::needquote{$c}) {
my $h = ""; my $h = "";
if ($::needquote{$c}) { if ($::needquote{$c} == 1) {
$h .= "<TH WIDTH=100%>"; $h .= "<TH WIDTH=100%>";
} elsif ($::needquote{$c} == 5) {
$h .= "<TH>";
} else { } else {
$h .= "<TH>"; $h .= "<TH>";
} }
...@@ -1099,11 +1101,12 @@ while (@row = FetchSQLData()) { ...@@ -1099,11 +1101,12 @@ while (@row = FetchSQLData()) {
if ($c eq "owner") { if ($c eq "owner") {
$ownerhash{$value} = 1; $ownerhash{$value} = 1;
} }
if ($::needquote{$c}) { if ($::needquote{$c} || $::needquote{$c} == 5) {
$value = html_quote($value); $value = html_quote($value);
} else { } else {
$value = "<nobr>$value</nobr>"; $value = "<nobr>$value</nobr>";
} }
pnl "<td class=$c>$value"; pnl "<td class=$c>$value";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment