mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Fix setting of default project tab
Summary: I don't PHP. Fixes T10256 Test Plan: Test many menus. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T10256 Differential Revision: https://secure.phabricator.com/D15166
This commit is contained in:
parent
9d125b459e
commit
5263c5bea4
1 changed files with 2 additions and 1 deletions
|
@ -663,6 +663,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
|
|||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Profile Menu Items'))
|
||||
->setSubHeader(pht('Drag tabs to reorder menu'))
|
||||
->addActionLink($action_button);
|
||||
|
||||
$box = id(new PHUIObjectBoxView())
|
||||
|
@ -907,7 +908,7 @@ abstract class PhabricatorProfilePanelEngine extends Phobject {
|
|||
|
||||
$is_target =
|
||||
(($builtin_key !== null) && ($builtin_key === $key)) ||
|
||||
(($id !== null) && ($id === (int)$key));
|
||||
(($id !== null) && ((int)$id === (int)$key));
|
||||
|
||||
if ($is_target) {
|
||||
if (!$panel->isDefault()) {
|
||||
|
|
Loading…
Reference in a new issue