From d19fa186113060118f220285aba7a694f8f10538 Mon Sep 17 00:00:00 2001 From: dklawren Date: Wed, 3 Jan 2018 16:46:58 -0500 Subject: Bug 1426518 - Revisions can optionally not have a bug id so we need to make it optional in the type constraints of Revision.pm --- extensions/PhabBugz/lib/WebService.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/PhabBugz/lib/WebService.pm') diff --git a/extensions/PhabBugz/lib/WebService.pm b/extensions/PhabBugz/lib/WebService.pm index 80a7df9b1..5b6310de6 100644 --- a/extensions/PhabBugz/lib/WebService.pm +++ b/extensions/PhabBugz/lib/WebService.pm @@ -75,8 +75,8 @@ sub revision { # Obtain more information about the revision from Phabricator my $revision_id = $params->{revision}; - my @revisions = get_revisions_by_ids([$revision_id]); - my $revision = $revisions[0]; + my $revisions = get_revisions_by_ids([$revision_id]); + my $revision = $revisions->[0]; my $revision_phid = $revision->{phid}; my $revision_title = $revision->{fields}{title} || 'Unknown Description'; @@ -96,7 +96,7 @@ sub revision { # If bug privacy groups do not have any matching synchronized groups, # then leave revision private and it will have be dealt with manually. if (!@set_groups) { - add_security_sync_comments(\@revisions, $bug); + add_security_sync_comments($revisions, $bug); } my $policy_phid = create_private_revision_policy($bug, \@set_groups); -- cgit v1.2.3-24-g4f1b