From 5263c5bea4a0e57b15515844b21fa48928792b92 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 2 Feb 2016 12:42:28 -0800 Subject: [PATCH] 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 --- .../search/engine/PhabricatorProfilePanelEngine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/search/engine/PhabricatorProfilePanelEngine.php b/src/applications/search/engine/PhabricatorProfilePanelEngine.php index 09307cd340..a3907feac8 100644 --- a/src/applications/search/engine/PhabricatorProfilePanelEngine.php +++ b/src/applications/search/engine/PhabricatorProfilePanelEngine.php @@ -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()) {