diff options
author | David Lawrence <dkl@mozilla.com> | 2016-07-07 17:11:41 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-07-07 17:11:41 +0200 |
commit | 2ba767c6a956733b9d622dfe516fca28b3992d08 (patch) | |
tree | 8f572a6d400faf1b40ebda9e7cc396d9cba7633d /extensions/Push/lib | |
parent | fc4ac8af35b5bfacb6b3ff996cea64f3ef2956df (diff) | |
download | bugzilla-2ba767c6a956733b9d622dfe516fca28b3992d08.tar.gz bugzilla-2ba767c6a956733b9d622dfe516fca28b3992d08.tar.xz |
Bug 1251668 - Add code to BMO to push specific bug changes to a Cisco Spark chatroom
Diffstat (limited to 'extensions/Push/lib')
-rw-r--r-- | extensions/Push/lib/Connector/Spark.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Push/lib/Connector/Spark.pm b/extensions/Push/lib/Connector/Spark.pm index af91f2985..a8b5bf056 100644 --- a/extensions/Push/lib/Connector/Spark.pm +++ b/extensions/Push/lib/Connector/Spark.pm @@ -62,7 +62,7 @@ sub should_send { # Send if bug has cisco-spark keyword my $bug = Bugzilla::Bug->new({ id => $bug_data->{id}, cache => 1 }); - return 0 if none { $_->name eq 'cisco-spark' } @{ $bug->keyword_objects }; + return 0 unless $bug->has_keyword('cisco-spark'); if ($message->routing_key eq 'bug.create') { return 1; |