Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a view named 'views' adds an expand button #15773

Closed
williamdes opened this issue Jan 10, 2020 · 12 comments
Closed

a view named 'views' adds an expand button #15773

williamdes opened this issue Jan 10, 2020 · 12 comments
Assignees
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
Milestone

Comments

@williamdes
Copy link
Member

image

PMA 5.0 and maybe before

create a view named views and use SELECT 1; as value

@williamdes williamdes added the Bug A problem or regression with an existing feature label Jan 10, 2020
@williamdes williamdes added this to Needs triage in issues via automation Jan 10, 2020
@williamdes williamdes moved this from Needs triage to to be fixed soon in issues Jan 10, 2020
@williamdes
Copy link
Member Author

Maybe related to #14698

@yashrajbothra
Copy link
Contributor

Could you explain me little more?

@williamdes
Copy link
Member Author

@yashrajbothra create a view named "views" the expand button should not exist

@yashrajbothra
Copy link
Contributor

Thanks @williamdes I got the issue and started working on it 👍👍

@yashrajbothra
Copy link
Contributor

when creating table named 'table' and click on expand icon it also give multiple errors

Like: Warning in .\libraries\classes\Navigation\NavigationTree.php#1178 vsprintf(): Too few arguments

#keyword error

@williamdes
Copy link
Member Author

@yashrajbothra yes, this is an issue on master branch
If you want to fix it go ahead, but please fix #15733 on QA_5_0 ;)

@yashrajbothra
Copy link
Contributor

yashrajbothra commented Jan 11, 2020

hey @williamdes after debugging and tracing the code history. I got to know it happens 5e2023c
file: libraries/classes/Navigation/NavigationTree.php
line:810
because if node name itself is in sterile, then it allows it as Group and shows expand

If any suggestion plz suggest. I will try to propose solution tommorow.

@williamdes
Copy link
Member Author

Hey @yashrajbothra
Why did you link the commit, I do not understand how it could have changed something 🤔

I will try to propose solution tomorrow.

Okay, I will wait then

@yashrajbothra
Copy link
Contributor

yashrajbothra commented Jan 12, 2020

Sorry, I refered to a Incorrect commit now i have changed that commit you can see now. (in_array($node->real_name, $sterile) this takes name of every node and if the sterile array contains that it becomes a group.

yashrajbothra added a commit to yashrajbothra/phpmyadmin that referenced this issue Jan 12, 2020
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Jan 12, 2020
@williamdes
Copy link
Member Author

Thank you, I understand better now
I will try to understand why the commit has introduced and see if your fix does not break that previous fix
You can also do that if you want :)

@yashrajbothra
Copy link
Contributor

Okay. I will check on it👍

@yashrajbothra
Copy link
Contributor

LGTM 👍.Because columns and indexes always have one children(New) it will not break any case.

@williamdes williamdes added this to the 5.0.2 milestone Jan 12, 2020
@williamdes williamdes self-assigned this Jan 12, 2020
williamdes added a commit that referenced this issue Jan 12, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from to be fixed soon to Closed Jan 12, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants