diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-12 22:42:01 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-12 22:42:01 +0200 |
commit | 4c13bdb3aadba6bdde21ef6335f92a8e93c336af (patch) | |
tree | b5850a77dd4918b7eeed4bc69ecdfa9070878145 | |
parent | b03cf319cbe3333f10f63a69ef9a6fc8c30462e0 (diff) | |
download | bugzilla-4c13bdb3aadba6bdde21ef6335f92a8e93c336af.tar.gz bugzilla-4c13bdb3aadba6bdde21ef6335f92a8e93c336af.tar.xz |
Bug 915823 - Custom fields being returned in Ember.show response that don't display in normal Bugzilla interface
-rw-r--r-- | Bugzilla.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |