]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1379632 - Error is thrown by update_project_members.pl when Phabricator returns...
authorDavid Lawrence <dkl@mozilla.com>
Mon, 10 Jul 2017 14:19:46 +0000 (10:19 -0400)
committerDavid Lawrence <dkl@mozilla.com>
Mon, 10 Jul 2017 14:19:46 +0000 (10:19 -0400)
extensions/PhabBugz/lib/Util.pm

index 124de6fafa05d05e659a50a2caf904804fa62d4b..cc26f4d891158a7a4a54c0c3a70e35f10b5cabb8 100644 (file)
@@ -230,7 +230,8 @@ sub get_members_by_bmo_id {
 
     my @phab_ids;
     foreach my $user (@{ $result->{result} }) {
-        push(@phab_ids, $user->{phid});
+        push(@phab_ids, $user->{phid})
+          if ($user->{phid} && $user->{phid} =~ /^PHID-USER/);
     }
 
     return \@phab_ids;