From: dklawren Date: Thu, 14 Sep 2017 16:45:46 +0000 (-0400) Subject: Bug 1399508 - Pass along transaction id to BMO API calls for linking back to the... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66b835ba543d4c5a8ecabea9337b11e009b32ce2;p=thirdparty%2Fbugzilla.git Bug 1399508 - Pass along transaction id to BMO API calls for linking back to the exact change in the revision history (#237) --- diff --git a/extensions/PhabBugz/lib/WebService.pm b/extensions/PhabBugz/lib/WebService.pm index 6ef5a8b5c..28ca19172 100644 --- a/extensions/PhabBugz/lib/WebService.pm +++ b/extensions/PhabBugz/lib/WebService.pm @@ -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,