diff options
author | byron jones <byron@glob.com.au> | 2018-07-23 16:35:10 +0200 |
---|---|---|
committer | dklawren <dklawren@users.noreply.github.com> | 2018-07-23 16:35:10 +0200 |
commit | e8c0dfe232ce1efe78f8dd7cf6b78c24b96786e8 (patch) | |
tree | ce4f1be956cc46056372661351c25d0bcdf0921c /extensions | |
parent | c9a6b0eabc7049ce17adb71d2d43b235732d1c0e (diff) | |
download | bugzilla-e8c0dfe232ce1efe78f8dd7cf6b78c24b96786e8.tar.gz bugzilla-e8c0dfe232ce1efe78f8dd7cf6b78c24b96786e8.tar.xz |
Bug 1475593 - Bugzilla Emails received when patches are attached in Phabricator
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/PhabBugz/lib/Feed.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm index 1f9824ed9..d238c6a43 100644 --- a/extensions/PhabBugz/lib/Feed.pm +++ b/extensions/PhabBugz/lib/Feed.pm @@ -433,9 +433,9 @@ sub process_revision_change { my ($timestamp) = Bugzilla->dbh->selectrow_array("SELECT NOW()"); 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.'); - + my $rev_attachment = create_revision_attachment($bug, $revision, $timestamp, $revision->author->bugzilla_user); + INFO('Attachment ' . $rev_attachment->id . ' created or already exists.'); + # ATTACHMENT OBSOLETES # fixup attachments on current bug @@ -576,7 +576,7 @@ sub process_revision_change { # Email changes for this revisions bug and also for any other # bugs that previously had these revision attachments foreach my $bug_id ($revision->bug_id, keys %other_bugs) { - Bugzilla::BugMail::Send($bug_id, { changer => Bugzilla->user }); + Bugzilla::BugMail::Send($bug_id, { changer => $rev_attachment->attacher }); } Bugzilla->set_user($old_user); |