Page MenuHomePhabricator

D17507.id42100.diff
No OneTemporary

D17507.id42100.diff

diff --git a/src/applications/audit/editor/PhabricatorAuditEditor.php b/src/applications/audit/editor/PhabricatorAuditEditor.php
--- a/src/applications/audit/editor/PhabricatorAuditEditor.php
+++ b/src/applications/audit/editor/PhabricatorAuditEditor.php
@@ -306,6 +306,18 @@
$field_key = DifferentialAuditorsCommitMessageField::FIELDKEY;
$phids = idx($result, $field_key, null);
+
+ if (!$phids) {
+ return array();
+ }
+
+ // If a commit lists its author as an auditor, just pretend it does not.
+ foreach ($phids as $key => $phid) {
+ if ($phid == $commit->getAuthorPHID()) {
+ unset($phids[$key]);
+ }
+ }
+
if (!$phids) {
return array();
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 11:39 AM (8 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7036766
Default Alt Text
D17507.id42100.diff (712 B)

Event Timeline