Page MenuHomePhabricator

D17507.diff
No OneTemporary

D17507.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
Tue, Mar 25, 10:32 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7574881
Default Alt Text
D17507.diff (712 B)

Event Timeline