From 4c13bdb3aadba6bdde21ef6335f92a8e93c336af Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 12 Sep 2013 16:42:01 -0400 Subject: Bug 915823 - Custom fields being returned in Ember.show response that don't display in normal Bugzilla interface --- Bugzilla.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 9a3b75756..a998de902 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -599,7 +599,8 @@ sub active_custom_fields { } if (!exists $class->request_cache->{$cache_id}) { my $fields = Bugzilla::Field->match({ custom => 1, obsolete => 0}); - Bugzilla::Hook::process('active_custom_fields', + @$fields = grep($_->type ne FIELD_TYPE_EXTENSION, @$fields); + Bugzilla::Hook::process('active_custom_fields', { fields => \$fields, params => $params }); $class->request_cache->{$cache_id} = $fields; } -- cgit v1.2.3-24-g4f1b