summaryrefslogtreecommitdiffstats
path: root/extensions/Push
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-08-12 17:44:56 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-08-12 17:44:56 +0200
commit261bb90c5cf98eb824f6897cdc0c6c4191618115 (patch)
tree51bc0fb953cc9b59272d0f543b23a153788755fb /extensions/Push
parentafa23774e953411a0b7ad73739970d5b81495195 (diff)
downloadbugzilla-261bb90c5cf98eb824f6897cdc0c6c4191618115.tar.gz
bugzilla-261bb90c5cf98eb824f6897cdc0c6c4191618115.tar.xz
Bug 902212 - tidy up active_custom usage in TrackingFlags
r=glob
Diffstat (limited to 'extensions/Push')
-rw-r--r--extensions/Push/lib/Serialise.pm8
1 files changed, 2 insertions, 6 deletions
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);
}