summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-12 22:42:01 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-12 22:42:01 +0200
commit4c13bdb3aadba6bdde21ef6335f92a8e93c336af (patch)
treeb5850a77dd4918b7eeed4bc69ecdfa9070878145 /Bugzilla.pm
parentb03cf319cbe3333f10f63a69ef9a6fc8c30462e0 (diff)
downloadbugzilla-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
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm3
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;
}