diff options
author | David Lawrence <dkl@mozilla.com> | 2017-07-10 16:19:46 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2017-07-10 16:19:46 +0200 |
commit | 4462c8562571ec06fdf6ac2dbb5f171ce7e7c90e (patch) | |
tree | 3974bd6f8babf1b6bd166682f446e9a83cb7279e /extensions | |
parent | 9ac147436702a8a8e70caf8976015fb2626fefb2 (diff) | |
download | bugzilla-4462c8562571ec06fdf6ac2dbb5f171ce7e7c90e.tar.gz bugzilla-4462c8562571ec06fdf6ac2dbb5f171ce7e7c90e.tar.xz |
Bug 1379632 - Error is thrown by update_project_members.pl when Phabricator returns a null value for a bmo user id search
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/PhabBugz/lib/Util.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/PhabBugz/lib/Util.pm b/extensions/PhabBugz/lib/Util.pm index 124de6faf..cc26f4d89 100644 --- a/extensions/PhabBugz/lib/Util.pm +++ b/extensions/PhabBugz/lib/Util.pm @@ -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; |