Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2872587
D25447.1736896503.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25447.1736896503.diff
View Options
diff --git a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
--- a/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
+++ b/src/applications/dashboard/paneltype/PhabricatorDashboardTabsPanelType.php
@@ -85,10 +85,12 @@
$rename_uri = id(new PhutilURI($rename_uri))
->replaceQueryParam('contextPHID', $context_phid);
- $selected = 0;
-
$key_list = array_keys($config);
+ // In the future we may persist which panel was selected.
+ // At the moment we have always selected the first one.
+ $selected = (string)head($key_list);
+
$next_keys = array();
$prev_keys = array();
for ($ii = 0; $ii < count($key_list); $ii++) {
@@ -111,7 +113,7 @@
$name = pht('Unnamed Tab');
}
- $is_selected = (string)$idx === (string)$selected;
+ $is_selected = (string)$idx === $selected;
$tab_view = id(new PHUIListItemView())
->setHref('#')
@@ -282,7 +284,7 @@
$panel_content = pht('(Invalid Panel)');
}
- $is_selected = (string)$idx === (string)$selected;
+ $is_selected = (string)$idx === $selected;
$content_id = celerity_generate_unique_node_id();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 23:15 (5 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113508
Default Alt Text
D25447.1736896503.diff (1 KB)
Attached To
Mode
D25447: Dashboard Panel: fix first tab sometime not opened anymore
Attached
Detach File
Event Timeline
Log In to Comment