From 2ba767c6a956733b9d622dfe516fca28b3992d08 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 7 Jul 2016 15:11:41 +0000 Subject: Bug 1251668 - Add code to BMO to push specific bug changes to a Cisco Spark chatroom --- extensions/Push/lib/Connector/Spark.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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; -- cgit v1.2.3-24-g4f1b