diff options
author | dklawren <dklawren@users.noreply.github.com> | 2018-06-25 21:37:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 21:37:53 +0200 |
commit | f8a6f476946b994f7f555da0ebbb14fc57a4f9c4 (patch) | |
tree | a8334e9ae0e99f3b873d862270cd99d5d20cf85b /extensions/PhabBugz/lib/Feed.pm | |
parent | fc8dc326b9b68b3b3768a68767da0ec51db6fd78 (diff) | |
download | bugzilla-f8a6f476946b994f7f555da0ebbb14fc57a4f9c4.tar.gz bugzilla-f8a6f476946b994f7f555da0ebbb14fc57a4f9c4.tar.xz |
Bug 1469881 - Patches posted by Phabricator to Bugzilla don't list the patch author
Diffstat (limited to 'extensions/PhabBugz/lib/Feed.pm')
-rw-r--r-- | extensions/PhabBugz/lib/Feed.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm index 981c95fb3..31dd8bca0 100644 --- a/extensions/PhabBugz/lib/Feed.pm +++ b/extensions/PhabBugz/lib/Feed.pm @@ -445,8 +445,10 @@ sub process_revision_change { my ($timestamp) = Bugzilla->dbh->selectrow_array("SELECT NOW()"); - my $attachment = create_revision_attachment($bug, $revision, $timestamp); - + INFO('Checking for revision attachment'); + my $attachment = create_revision_attachment($bug, $revision, $timestamp, $revision->author->bugzilla_user); + INFO('Attachment ' . $attachment->id . ' created or already exists.'); + # ATTACHMENT OBSOLETES # fixup attachments on current bug @@ -641,9 +643,9 @@ sub process_new_user { date => $timestamp, phab_user_login => $phab_user->name, phab_user_realname => $phab_user->realname, - bugzilla_userid => $phab_user->bugzilla_user->id, - bugzilla_login => $phab_user->bugzilla_user->login, - bugzilla_realname => $phab_user->bugzilla_user->name, + bugzilla_userid => $bug_user->id, + bugzilla_login => $bug_user->login, + bugzilla_realname => $bug_user->name, squat_userid => $row->{userid}, squat_login => $row->{login_name}, squat_realname => $row->{realname} |