Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15193579
D8876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8876.diff
View Options
diff --git a/src/applications/audit/view/PhabricatorAuditListView.php b/src/applications/audit/view/PhabricatorAuditListView.php
--- a/src/applications/audit/view/PhabricatorAuditListView.php
+++ b/src/applications/audit/view/PhabricatorAuditListView.php
@@ -92,7 +92,6 @@
$rowc = array();
$list = new PHUIObjectItemListView();
- $authority = array_fill_keys($this->authorityPHIDs, true);
foreach ($this->commits as $commit) {
$commit_phid = $commit->getPHID();
$commit_handle = $this->getHandle($commit_phid);
@@ -113,7 +112,12 @@
}
$auditors = phutil_implode_html(', ', $auditors);
- $audit = idx($audits, $user->getPHID());
+ $authority_audits = array_select_keys($audits, $this->authorityPHIDs);
+ if ($authority_audits) {
+ $audit = reset($authority_audits);
+ } else {
+ $audit = reset($audits);
+ }
if ($audit) {
$reasons = $audit->getAuditReasons();
$reasons = phutil_implode_html(', ', $reasons);
@@ -143,10 +147,6 @@
$item->addAttribute(pht('Auditors: %s', $auditors));
}
- if ($commit->getAuthorityAudits($user, $this->authorityPHIDs)) {
- $item->setEffect('highlighted');
- }
-
$list->addItem($item);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 5:58 AM (11 h, 13 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7184951
Default Alt Text
D8876.diff (1 KB)
Attached To
Mode
D8876: Audit - polish list view a bit
Attached
Detach File
Event Timeline
Log In to Comment