aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-08-08 08:27:26 +0000
committerlpsolit%gmail.com <>2008-08-08 08:27:26 +0000
commit49f694a0d054821fad9651b37ed20fd48372dfbd (patch)
treed6458bcb57209d3f5b9b1f2246a577497664d062
parentac93e1f2fead3f9c67477e72ed2c4e95d607b0e9 (diff)
downloadbugs-49f694a0d054821fad9651b37ed20fd48372dfbd.tar
bugs-49f694a0d054821fad9651b37ed20fd48372dfbd.tar.gz
bugs-49f694a0d054821fad9651b37ed20fd48372dfbd.tar.bz2
bugs-49f694a0d054821fad9651b37ed20fd48372dfbd.tar.xz
bugs-49f694a0d054821fad9651b37ed20fd48372dfbd.zip
Bug 449693: If a custom multi-select field is active, displaying all columns in buglists throws a SQL error - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
-rwxr-xr-xbuglist.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index d0f350e0a..c06d40d22 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -695,6 +695,8 @@ DefineColumn("relevance" , "relevance" , "Relevance"
DefineColumn("deadline" , $dbh->sql_date_format('bugs.deadline', '%Y-%m-%d') . " AS deadline", "Deadline");
foreach my $field (Bugzilla->active_custom_fields) {
+ # Multi-select fields are not (yet) supported in buglists.
+ next if $field->type == FIELD_TYPE_MULTI_SELECT;
DefineColumn($field->name, 'bugs.' . $field->name, $field->description);
}