From 946549d2deaaea56078f8f9d11dacbc2838f2492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 4 Apr 2017 09:47:34 +0200 Subject: [PATCH] Do not show New as a database in database dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13144 Signed-off-by: Michal Čihař --- ChangeLog | 1 + libraries/navigation/NavigationTree.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2145418ecb..50ca651abf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog - issue #13150 Fixed pagination while browsing resuls - issue #13149 Fixed outbound links in changelog.php - issue #13146 Do not include devel dependencies in the release +- issue #13144 Do not show New as a database in database dropdown 4.7.0 (2017-03-28) - patch #12233 [Display] Improve message when renaming database to same name diff --git a/libraries/navigation/NavigationTree.php b/libraries/navigation/NavigationTree.php index 50e65c99bb..5db11df455 100644 --- a/libraries/navigation/NavigationTree.php +++ b/libraries/navigation/NavigationTree.php @@ -1274,6 +1274,9 @@ class NavigationTree . '(' . __('Databases') . ') ...' . "\n"; $selected = $GLOBALS['db']; foreach ($children as $node) { + if ($node->isNew) { + continue; + } $paths = $node->getPaths(); if (isset($node->links['text'])) { $title = empty($node->links['title']) ? '' : $node->links['title'];