From 261bb90c5cf98eb824f6897cdc0c6c4191618115 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 12 Aug 2013 11:44:56 -0400 Subject: Bug 902212 - tidy up active_custom usage in TrackingFlags r=glob --- extensions/Push/lib/Serialise.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'extensions/Push') diff --git a/extensions/Push/lib/Serialise.pm b/extensions/Push/lib/Serialise.pm index 82eb654b5..94f33c754 100644 --- a/extensions/Push/lib/Serialise.pm +++ b/extensions/Push/lib/Serialise.pm @@ -206,14 +206,10 @@ sub _bug { }; # add custom fields - my @custom_fields = Bugzilla->active_custom_fields; + my @custom_fields = Bugzilla->active_custom_fields( + { product => $bug->product_obj, component => $bug->component_obj }); foreach my $field (@custom_fields) { my $name = $field->name; - - # skip custom fields that are hidded from this product/component - next if Bugzilla::Extension::BMO::cf_hidden_in_product( - $name, $bug->product, $bug->component); - $rh->{$name} = _custom_field($field, $bug->$name); } -- cgit v1.2.3-24-g4f1b