]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1251668 - Add code to BMO to push specific bug changes to a Cisco Spark chatroom
authorDavid Lawrence <dkl@mozilla.com>
Thu, 7 Jul 2016 15:11:41 +0000 (15:11 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Thu, 7 Jul 2016 15:11:41 +0000 (15:11 +0000)
extensions/Push/lib/Connector/Spark.pm

index af91f2985a07ced5aa2e2bfbf465e5d372a2e2bd..a8b5bf056302ee8ac3e81972ccc78c986b3fc41a 100644 (file)
@@ -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;