diff options
author | lpsolit%gmail.com <> | 2007-10-21 08:56:35 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-21 08:56:35 +0200 |
commit | 657efc29514025afe346f4804acb4f0ac500df42 (patch) | |
tree | 1585f29a0495cbc7b0248cd211e099030bb561fe /Bugzilla | |
parent | dc4fc18fa7c860932fc8a30b52c828028369562e (diff) | |
download | bugzilla-657efc29514025afe346f4804acb4f0ac500df42.tar.gz bugzilla-657efc29514025afe346f4804acb4f0ac500df42.tar.xz |
Bug 400569: Bugzilla::Bug::editable_bug_fields() behaves incorrectly on installations with custom multi-select fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 597fd5258..ed398f0fe 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. |