From: lpsolit%gmail.com <> Date: Sun, 21 Oct 2007 06:56:35 +0000 (+0000) Subject: Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on installations... X-Git-Tag: bugzilla-3.1.3~487 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=657efc29514025afe346f4804acb4f0ac500df42;p=thirdparty%2Fbugzilla.git Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on installations with custom multi-select fields - Patch by Frédéric Buclin r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 597fd5258f..ed398f0fe4 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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.