summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-07-10 16:19:46 +0200
committerDavid Lawrence <dkl@mozilla.com>2017-07-10 16:19:46 +0200
commit4462c8562571ec06fdf6ac2dbb5f171ce7e7c90e (patch)
tree3974bd6f8babf1b6bd166682f446e9a83cb7279e /extensions/PhabBugz
parent9ac147436702a8a8e70caf8976015fb2626fefb2 (diff)
downloadbugzilla-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/PhabBugz')
-rw-r--r--extensions/PhabBugz/lib/Util.pm3
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;