summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-05-28 16:38:20 +0200
committerDavid Lawrence <dkl@mozilla.com>2017-05-28 16:39:00 +0200
commit9b98e5f442c2305f250f31062fcb77e0180a5cec (patch)
tree1c6fa040a75daca1e4bd5c11c64d30f1d7b8b5cd
parent316a5ce1691fceba69055b0bd46ec40067873d50 (diff)
downloadbugzilla-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-xextensions/PhabBugz/bin/update_project_members.pl5
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);