Commit 657efc29 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on…

Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on installations with custom multi-select fields - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=LpSolit
parent dc4fc18f
......@@ -2402,7 +2402,8 @@ sub editable_bug_fields {
@obsolete_fields = map { $_->name } @obsolete_fields;
foreach my $remove ("bug_id", "reporter", "creation_ts", "delta_ts", "lastdiffed", @obsolete_fields) {
my $location = lsearch(\@fields, $remove);
splice(@fields, $location, 1);
# Custom multi-select fields are not stored in the bugs table.
splice(@fields, $location, 1) if ($location > -1);
}
# Sorted because the old @::log_columns variable, which this replaces,
# was sorted.
......
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