diff options
author | David Lawrence <dkl@mozilla.com> | 2017-05-28 16:38:20 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2017-05-28 16:39:00 +0200 |
commit | 9b98e5f442c2305f250f31062fcb77e0180a5cec (patch) | |
tree | 1c6fa040a75daca1e4bd5c11c64d30f1d7b8b5cd | |
parent | 316a5ce1691fceba69055b0bd46ec40067873d50 (diff) | |
download | bugzilla-9b98e5f442c2305f250f31062fcb77e0180a5cec.tar.gz bugzilla-9b98e5f442c2305f250f31062fcb77e0180a5cec.tar.xz |
Bug 1368901 - get_phab_members_by_bmo_id() throws error from Phabricator when no users are part of the bmo group
-rwxr-xr-x | extensions/PhabBugz/bin/update_project_members.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/PhabBugz/bin/update_project_members.pl b/extensions/PhabBugz/bin/update_project_members.pl index 712368d2d..56c471fe8 100755 --- a/extensions/PhabBugz/bin/update_project_members.pl +++ b/extensions/PhabBugz/bin/update_project_members.pl @@ -61,7 +61,10 @@ foreach my $group (@$sync_groups) { } # Get the internal user ids for the bugzilla group members - my $phab_user_ids = get_phab_members_by_bmo_id(\@users); + my $phab_user_ids = []; + if (@users) { + $phab_user_ids = get_phab_members_by_bmo_id(\@users); + } # Set the project members to the exact list set_phab_project_members($project_id, $phab_user_ids); |