phpmyadmin / phpmyadmin/phpmyadmin

[Bug]: ShowDatabasesNavigationAsTree not working as expected

Open
#20,055 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
PHP
Stars
7.9k
Forks
3.6k
Avg merge
4d 18h
Merged PRs (30d)
36

Description

Describe the bug

After upgrading to phpmyadmin 5.2.3 using ShowDatabasesNavigationAsTree set to False gives different behavior than before.

How to Reproduce

$cfg['ShowDatabasesNavigationAsTree'] = false in the config.inc.php file

  1. Go to Home screen of phpmyadmin
  2. Click on any database in the tree on the left
  3. Database expands in place still showing all databases
  4. Refresh the page and the nav tree now shows only the selected database
Expected behavior

Clicking on any database should load only that database into the tree and selecting a different database requires changing the database in the drop down box at the top of the nav tree.

Screenshots

On click
Image
after refreshing page

Image
Operating System

Windows

Web Server

Apache/2.4.58

Database Server

MariaDB

Database version

12.1.2-MariaDB

PHP version

8.2.12

phpMyAdmin version

5.2.3

browser

Vivaldi 7.7.3851.67 (Official Build) (64-bit) - Chromium 142.0.7444.267

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior from the Home screen with ShowDatabasesNavigationAsTree set to false in config.inc.php, then follow the database selection and left navigation tree entry points. Done means clicking a database immediately leaves only that database in the tree, matching the refreshed state and the stated expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.