From: justdave%syndicomm.com <> Date: Sun, 18 Nov 2001 05:04:37 +0000 (+0000) Subject: Fix for bug 12284: allow user to specify which columns to display in a bug list X-Git-Tag: bugzilla-2.16rc1~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbae476ccc2716b13b0dbbce630a2f2576dc0564;p=thirdparty%2Fbugzilla.git Fix for bug 12284: allow user to specify which columns to display in a bug list Patch by Andreas Franke r= gerv, kiko --- diff --git a/buglist.cgi b/buglist.cgi index 18ad053dc2..d49e7ed257 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1004,7 +1004,9 @@ DefCol("votes", "bugs.votes", "Votes", "bugs.votes desc"); DefCol("keywords", "bugs.keywords", "Keywords", "bugs.keywords", 5); my @collist; -if (defined $::COOKIE{'COLUMNLIST'}) { +if (defined $::FORM{'columnlist'}) { + @collist = split(/[ ,]+/, $::FORM{'columnlist'}); +} elsif (defined $::COOKIE{'COLUMNLIST'}) { @collist = split(/ /, $::COOKIE{'COLUMNLIST'}); } else { @collist = @::default_column_list;