Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #20198 - Show bookmarks with blank database in any database#20306

Open
eyupcanakman wants to merge 1 commit into
phpmyadmin:QA_5_2from
eyupcanakman:fix/bookmark-blank-database-fallback-20198
Open

Fix #20198 - Show bookmarks with blank database in any database#20306
eyupcanakman wants to merge 1 commit into
phpmyadmin:QA_5_2from
eyupcanakman:fix/bookmark-blank-database-fallback-20198

Conversation

@eyupcanakman
Copy link
Copy Markdown
Contributor

Description

Bookmark::getList() and Bookmark::get() filter by AND dbase = '<db>', so a bookmark stored with dbase = '' is hidden once a current database is selected. The user clause already has a matching blank fallback (( user = '' OR user = '<user>' )). The dbase clause now mirrors it: ( dbase = '' OR dbase = '<db>' ).

Note: in Sql::storeTheQueryAsBookmark, the "replace existing bookmark" path now also matches a same-labeled shared (blank-database) bookmark when saving from a current database. Happy to scope that down if it's unwanted.

Fixes #20198.

…base

Bookmark::getList() and Bookmark::get() filter by AND dbase = '<db>',
so a bookmark stored with dbase = '' is hidden once a current database
is selected. Mirror the existing user = '' fallback with
AND ( dbase = '' OR dbase = '<db>' ) in both methods.

Signed-off-by: Eyüp Can Akman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant