diff options
author | dklawren <dklawren@users.noreply.github.com> | 2018-02-27 00:33:31 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-02-27 00:33:31 +0100 |
commit | 567198eda0c0b54a708e458157de1cab1c29110f (patch) | |
tree | 1c4b86c2f4dbc6d35b63b696fefcb0572940a200 /extensions/PhabBugz | |
parent | 6c761ab2783d5683e90784a94e3345f856d01813 (diff) | |
download | bugzilla-567198eda0c0b54a708e458157de1cab1c29110f.tar.gz bugzilla-567198eda0c0b54a708e458157de1cab1c29110f.tar.xz |
Bug 1441329 - Fix typos in the PhahBugz User.pm module
Diffstat (limited to 'extensions/PhabBugz')
-rw-r--r-- | extensions/PhabBugz/lib/User.pm | 6 |
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 = []; |