Page MenuHomePhorge

D25421.1734731601.diff
No OneTemporary

D25421.1734731601.diff

diff --git a/src/applications/audit/storage/PhabricatorAuditTransaction.php b/src/applications/audit/storage/PhabricatorAuditTransaction.php
--- a/src/applications/audit/storage/PhabricatorAuditTransaction.php
+++ b/src/applications/audit/storage/PhabricatorAuditTransaction.php
@@ -338,7 +338,17 @@
$author = null;
}
- if ($author) {
+ // Show both Author and Committer only if they are different.
+ $show_both = $author && $committer;
+ if ($show_both) {
+ if ($new['authorPHID']) {
+ $show_both = $new['authorPHID'] !== $new['committerPHID'];
+ } else if (phutil_nonempty_string($new['authorName'])) {
+ $show_both = $new['authorName'] !== $new['committerName'];
+ }
+ }
+
+ if ($show_both) {
$title = pht(
'%s committed %s (authored by %s).',
$committer,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 21:53 (15 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021147
Default Alt Text
D25421.1734731601.diff (910 B)

Event Timeline