]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on installations...
authorlpsolit%gmail.com <>
Sun, 21 Oct 2007 06:56:35 +0000 (06:56 +0000)
committerlpsolit%gmail.com <>
Sun, 21 Oct 2007 06:56:35 +0000 (06:56 +0000)
Bugzilla/Bug.pm

index 597fd5258fdea09017e10ea79c49a8fec9f028c9..ed398f0fe4e48dc1f6ade52e425dc9602b70c7aa 100755 (executable)
@@ -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.