]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 12284: allow user to specify which columns to display in a bug list
authorjustdave%syndicomm.com <>
Sun, 18 Nov 2001 05:04:37 +0000 (05:04 +0000)
committerjustdave%syndicomm.com <>
Sun, 18 Nov 2001 05:04:37 +0000 (05:04 +0000)
Patch by Andreas Franke <afranke@ags.uni-sb.de>
r= gerv, kiko

buglist.cgi

index 18ad053dc2a670a54c8c430e562b883899f2b9df..d49e7ed257fb42197107ca3741bf7296ad451cc3 100755 (executable)
@@ -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;