Page MenuHomePhabricator

D21600.id51425.diff
No OneTemporary

D21600.id51425.diff

diff --git a/src/applications/audit/constants/PhabricatorAuditRequestStatus.php b/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
--- a/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
+++ b/src/applications/audit/constants/PhabricatorAuditRequestStatus.php
@@ -37,6 +37,10 @@
return $this->key;
}
+ public function getStatusValueForConduit() {
+ return $this->getMapProperty('value.conduit');
+ }
+
public function isResigned() {
return ($this->key === self::RESIGNED);
}
@@ -53,26 +57,31 @@
'name' => pht('Audit Required'),
'icon' => 'fa-exclamation-circle',
'icon.color' => 'orange',
+ 'value.conduit' => 'audit-required',
),
self::AUDIT_REQUESTED => array(
'name' => pht('Audit Requested'),
'icon' => 'fa-exclamation-circle',
'icon.color' => 'orange',
+ 'value.conduit' => 'audit-requested',
),
self::CONCERNED => array(
- 'name' => pht('concern Raised'),
+ 'name' => pht('Concern Raised'),
'icon' => 'fa-times-circle',
'icon.color' => 'red',
+ 'value.conduit' => 'concern-raised',
),
self::ACCEPTED => array(
'name' => pht('Accepted'),
'icon' => 'fa-check-circle',
'icon.color' => 'green',
+ 'value.conduit' => 'accepted',
),
self::RESIGNED => array(
'name' => pht('Resigned'),
'icon' => 'fa-times',
'icon.color' => 'grey',
+ 'value.conduit' => 'resigned',
),
);
}
diff --git a/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php b/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
--- a/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
+++ b/src/applications/diffusion/engineextension/DiffusionAuditorsSearchEngineAttachment.php
@@ -24,7 +24,7 @@
$list[] = array(
'auditorPHID' => $auditor->getAuditorPHID(),
- 'status' => $status->getStatusValue(),
+ 'status' => $status->getStatusValueForConduit(),
);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 27, 4:56 PM (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7387141
Default Alt Text
D21600.id51425.diff (2 KB)

Event Timeline