From 196782cb0c28322b6325f9415f3cdf2f25fc7c0d Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 10 Sep 2013 13:43:03 -0400 Subject: Bug 904988 - create an ember extension with bespoke methods r=glob --- Bugzilla/WebService/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index e3ebf8dc8..2301e651e 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -1018,7 +1018,8 @@ sub _bug_to_hash { } # And now custom fields - my @custom_fields = Bugzilla->active_custom_fields; + my @custom_fields = Bugzilla->active_custom_fields({ + product => $bug->product_obj, component => $bug->component_obj, bug_id => $bug->id }); foreach my $field (@custom_fields) { my $name = $field->name; next if !filter_wants $params, $name; -- cgit v1.2.3-24-g4f1b