]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1399508 - Pass along transaction id to BMO API calls for linking back to the...
authordklawren <dklawren@users.noreply.github.com>
Thu, 14 Sep 2017 16:45:46 +0000 (12:45 -0400)
committerDavid Walsh <davidwalsh83@gmail.com>
Thu, 14 Sep 2017 16:45:46 +0000 (11:45 -0500)
extensions/PhabBugz/lib/WebService.pm

index 6ef5a8b5cfe3c1ffe294657b531fe14ed6e796f5..28ca19172868212fa2c46e1c4aa671ff80a52310 100644 (file)
@@ -218,6 +218,8 @@ sub update_reviewer_statuses {
 
         if ($comment) {
             $comment .= "\n" . Bugzilla->params->{phabricator_base_uri} . "D" . $revision_id;
+            # Add transaction_id as anchor if one present
+            $comment .= "#" . $params->{transaction_id} if $params->{transaction_id};
             $bug->add_comment($comment, {
                 isprivate  => $attachment->isprivate,
                 type       => CMT_ATTACHMENT_UPDATED,