diff options
author | Byron Jones <bjones@mozilla.com> | 2013-05-21 09:44:40 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-05-21 09:44:40 +0200 |
commit | c77550b4e47ad7835b3cc9b082136013b8c6bc7b (patch) | |
tree | 9890e81fc2a10606dea524c232ccefac6dddca12 /extensions/Push/lib | |
parent | c8580dff0eea7d9c7a7d822c18d59335eed98010 (diff) | |
download | bugzilla-c77550b4e47ad7835b3cc9b082136013b8c6bc7b.tar.gz bugzilla-c77550b4e47ad7835b3cc9b082136013b8c6bc7b.tar.xz |
Bug 874327: add Blocking_B2G to tcl connector
Diffstat (limited to 'extensions/Push/lib')
-rw-r--r-- | extensions/Push/lib/Connector/TCL.pm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/extensions/Push/lib/Connector/TCL.pm b/extensions/Push/lib/Connector/TCL.pm index 6207e2eac..16ebb0319 100644 --- a/extensions/Push/lib/Connector/TCL.pm +++ b/extensions/Push/lib/Connector/TCL.pm @@ -119,7 +119,9 @@ sub should_send { # send status and resolution updates foreach my $change (@{ $data->{event}->{changes} }) { - return 1 if $change->{field} eq 'bug_status' || $change->{field} eq 'resolution'; + return 1 if $change->{field} eq 'bug_status' + || $change->{field} eq 'resolution' + || $change->{field} eq 'cf_blocking_b2g'; } # send attachments @@ -152,11 +154,12 @@ sub send { # build payload my $attachment; my %xml = ( - Mozilla_ID => $bug_data->{id}, - When => $data->{event}->{time}, - Who => $data->{event}->{user}->{login}, - Status => $bug_data->{status}->{name}, - Resolution => $bug_data->{resolution}, + Mozilla_ID => $bug_data->{id}, + When => $data->{event}->{time}, + Who => $data->{event}->{user}->{login}, + Status => $bug_data->{status}->{name}, + Resolution => $bug_data->{resolution}, + Blocking_B2G => $bug_data->{cf_blocking_b2g}, ); if ($data->{event}->{routing_key} eq 'comment.create') { $xml{Comment} = $data->{comment}->{body}; |