Commit 49f694a0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 449693: If a custom multi-select field is active, displaying all columns in…

Bug 449693: If a custom multi-select field is active, displaying all columns in buglists throws a SQL error - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent ac93e1f2
...@@ -695,6 +695,8 @@ DefineColumn("relevance" , "relevance" , "Relevance" ...@@ -695,6 +695,8 @@ DefineColumn("relevance" , "relevance" , "Relevance"
DefineColumn("deadline" , $dbh->sql_date_format('bugs.deadline', '%Y-%m-%d') . " AS deadline", "Deadline"); DefineColumn("deadline" , $dbh->sql_date_format('bugs.deadline', '%Y-%m-%d') . " AS deadline", "Deadline");
foreach my $field (Bugzilla->active_custom_fields) { 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); DefineColumn($field->name, 'bugs.' . $field->name, $field->description);
} }
......
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