Page MenuHomePhorge

D25731.1734825746.diff
No OneTemporary

D25731.1734825746.diff

diff --git a/src/applications/project/controller/PhabricatorProjectArchiveController.php b/src/applications/project/controller/PhabricatorProjectArchiveController.php
--- a/src/applications/project/controller/PhabricatorProjectArchiveController.php
+++ b/src/applications/project/controller/PhabricatorProjectArchiveController.php
@@ -27,6 +27,12 @@
$new_status = PhabricatorProjectStatus::STATUS_ACTIVE;
} else {
$new_status = PhabricatorProjectStatus::STATUS_ARCHIVED;
+ // When archiving a project, set default menu item to Profile - T15882
+ $engine = id(new PhabricatorProjectProfileMenuEngine())
+ ->setViewer($viewer)
+ ->setController($this)
+ ->setProfileObject($project);
+ $engine->adjustDefault(PhabricatorProject::ITEM_PROFILE);
}
$xactions = array();

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 00:02 (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025136
Default Alt Text
D25731.1734825746.diff (855 B)

Event Timeline