Page MenuHomePhabricator

D18765.diff
No OneTemporary

D18765.diff

diff --git a/src/applications/differential/constants/DifferentialLegacyQuery.php b/src/applications/differential/constants/DifferentialLegacyQuery.php
--- a/src/applications/differential/constants/DifferentialLegacyQuery.php
+++ b/src/applications/differential/constants/DifferentialLegacyQuery.php
@@ -32,14 +32,7 @@
}
private static function getMap() {
- $all = array(
- DifferentialRevisionStatus::NEEDS_REVIEW,
- DifferentialRevisionStatus::NEEDS_REVISION,
- DifferentialRevisionStatus::CHANGES_PLANNED,
- DifferentialRevisionStatus::ACCEPTED,
- DifferentialRevisionStatus::PUBLISHED,
- DifferentialRevisionStatus::ABANDONED,
- );
+ $all = array_keys(DifferentialRevisionStatus::getAll());
$open = array();
$closed = array();
@@ -61,6 +54,9 @@
),
self::STATUS_NEEDS_REVIEW => array(
DifferentialRevisionStatus::NEEDS_REVIEW,
+
+ // For legacy callers, "Draft" is treated as "Needs Review".
+ DifferentialRevisionStatus::DRAFT,
),
self::STATUS_NEEDS_REVISION => array(
DifferentialRevisionStatus::NEEDS_REVISION,

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 7:43 PM (14 h, 59 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6983948
Default Alt Text
D18765.diff (1 KB)

Event Timeline