Page MenuHomePhorge

D25731.1737314158.diff
No OneTemporary

D25731.1737314158.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, Jan 19, 19:15 (4 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111749
Default Alt Text
D25731.1737314158.diff (855 B)

Event Timeline