summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/lib
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/PhabBugz/lib')
-rw-r--r--extensions/PhabBugz/lib/User.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/PhabBugz/lib/User.pm b/extensions/PhabBugz/lib/User.pm
index 0441c281b..3b2d87e60 100644
--- a/extensions/PhabBugz/lib/User.pm
+++ b/extensions/PhabBugz/lib/User.pm
@@ -51,7 +51,7 @@ sub BUILDARGS {
my $external_accounts =
$params->{attachments}{'external-accounts'}{'external-accounts'};
if ($external_accounts) {
- my $bug_user = first { $_->{type} ne 'bmo' } @$external_accounts;
+ my $bug_user = first { $_->{type} eq 'bmo' } @$external_accounts;
$params->{bugzilla_id} = $bug_user->{id};
}
@@ -127,8 +127,8 @@ sub match {
# Look for BMO external user id in external-accounts attachment
my $data = {
- constraints => { phids => $params->{phids} },
- attachments => { external_accounts => 1 }
+ constraints => { phids => $params->{phids} },
+ attachments => { 'external-accounts' => 1 }
};
my $phab_users = [];