diff --git a/src/applications/project/controller/PhabricatorProjectController.php b/src/applications/project/controller/PhabricatorProjectController.php --- a/src/applications/project/controller/PhabricatorProjectController.php +++ b/src/applications/project/controller/PhabricatorProjectController.php @@ -191,7 +191,13 @@ $view_list = $engine->newProfileMenuItemViewList(); - $view_list->setSelectedViewWithItemIdentifier($item_identifier); + // See PHI1247. If the "Workboard" item is removed from the menu, we will + // not be able to select it. This can happen if a user removes the item, + // then manually navigate to the workboard URI (or follows an older link). + // In this case, just render the menu with no selected item. + if ($view_list->getViewsWithItemIdentifier($item_identifier)) { + $view_list->setSelectedViewWithItemIdentifier($item_identifier); + } $navigation = $view_list->newNavigationView();