summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-07-07 17:11:41 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-07-07 17:11:41 +0200
commit2ba767c6a956733b9d622dfe516fca28b3992d08 (patch)
tree8f572a6d400faf1b40ebda9e7cc396d9cba7633d /extensions
parentfc4ac8af35b5bfacb6b3ff996cea64f3ef2956df (diff)
downloadbugzilla-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')
-rw-r--r--extensions/Push/lib/Connector/Spark.pm2
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;