diff options
author | lpsolit%gmail.com <> | 2007-01-10 01:16:54 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-01-10 01:16:54 +0100 |
commit | ed06de9de3117f8894872495e973ff812212ff91 (patch) | |
tree | bf984c70d9c46dfcad72f4044d3fac85ff93e02b /Bugzilla/Bug.pm | |
parent | 9366e99627f23f3c397128947433d9c7363d35a5 (diff) | |
download | bugzilla-ed06de9de3117f8894872495e973ff812212ff91.tar.gz bugzilla-ed06de9de3117f8894872495e973ff812212ff91.tar.xz |
Bug 365444: Obsolete custom fields are shown in e-mail notifications for new bugs, despite they shouldn't - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 841b6f14f..43c430ac1 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1384,7 +1384,10 @@ sub update_comment { # Represents which fields from the bugs table are handled by process_bug.cgi. sub editable_bug_fields { my @fields = Bugzilla->dbh->bz_table_columns('bugs'); - foreach my $remove ("bug_id", "creation_ts", "delta_ts", "lastdiffed") { + # Obsolete custom fields are not editable. + my @obsolete_fields = Bugzilla->get_fields({obsolete => 1, custom => 1}); + @obsolete_fields = map { $_->name } @obsolete_fields; + foreach my $remove ("bug_id", "creation_ts", "delta_ts", "lastdiffed", @obsolete_fields) { my $location = lsearch(\@fields, $remove); splice(@fields, $location, 1); } |