summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-06-29 00:02:19 +0200
committerGitHub <noreply@github.com>2018-06-29 00:02:19 +0200
commit4a15e8b3b36dcde234ef2e068d931a59e0ce1d4e (patch)
tree8e3bb060587aa03d8f18ef586925adba56cbc8c2
parentf63319ac7da3fc3f9107c21ad715b8af9566fde4 (diff)
downloadbugzilla-4a15e8b3b36dcde234ef2e068d931a59e0ce1d4e.tar.gz
bugzilla-4a15e8b3b36dcde234ef2e068d931a59e0ce1d4e.tar.xz
Bug 1469373 - Phabbugz fails with undefined error when phab user without linked BMO account accepts BMO linked revision
-rw-r--r--extensions/PhabBugz/lib/Feed.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm
index 72829f179..41a330787 100644
--- a/extensions/PhabBugz/lib/Feed.pm
+++ b/extensions/PhabBugz/lib/Feed.pm
@@ -477,7 +477,7 @@ sub process_revision_change {
phids => \@accepted_phids
}
);
- @accepted_user_ids = map { $_->bugzilla_user->id } @$phab_users;
+ @accepted_user_ids = map { $_->bugzilla_user->id } grep { defined $_->bugzilla_user } @$phab_users;
}
if ( @denied_phids ) {
@@ -486,7 +486,7 @@ sub process_revision_change {
phids => \@denied_phids
}
);
- @denied_user_ids = map { $_->bugzilla_user->id } @$phab_users;
+ @denied_user_ids = map { $_->bugzilla_user->id } grep { defined $_->bugzilla_user } @$phab_users;
}
my %reviewers_hash = map { $_->name => 1 } @{ $revision->reviewers };