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

Fix ghost item in toolbar when no query #503

Merged
merged 1 commit into from
Dec 14, 2015
Merged

Conversation

ogizanagi
Copy link
Contributor

Fix symfony/symfony#16976.

However, the item will also be hidden from the toolbar when using the old profiler/toolbar theme.
I don't think it matters, but tell me if I'm wrong.

@dosten
Copy link

dosten commented Dec 12, 2015

@stof
Copy link
Member

stof commented Dec 14, 2015

Good catch, thanks @ogizanagi.

@stof stof merged commit bcad555 into doctrine:master Dec 14, 2015
stof added a commit that referenced this pull request Dec 14, 2015
This PR was merged into the 1.6.x-dev branch.

Discussion
----------

Fix ghost item in toolbar when no query

Fix symfony/symfony#16976.

However, the item will also be hidden from the toolbar when using the old profiler/toolbar theme.
I don't think it matters, but tell me if I'm wrong.

Commits
-------

bcad555 Fix ghost item in toolbar when no query
@ogizanagi ogizanagi deleted the fix_toolbar branch December 14, 2015 11:12
@javiereguiluz
Copy link
Contributor

@ogizanagi I'm sorry I didn't see your pull request earlier. I do think that the change in the old behavior matters. People are used to see all toolbar panels when using old Symfony applications. If they now don't see the Doctrine panel, they'll think that something wrong happened. In #508 I solved this issue in a different way to respect the old behavior, just in case someone else thinks this is important.

@ogizanagi
Copy link
Contributor Author

@javiereguiluz : I don't know actually. Retrospectively, I don't think people would expect to have the doctrine toolbar item on a page where there is no query at all.
And if they do, they'll go to the profiler page and understand there is no query. So they'll wonder themselves why the toolbar item is not shown only once, and then benefit from the free space cleared.

Of course I agree a change in the behavior is not great in what is supposed to be a bug fix, that's why I asked. ^^

@stof
Copy link
Member

stof commented Dec 22, 2015

@javiereguiluz some panels were already hidden in the old toolbar (SwiftmailerBundle for instance). It was just not a convention applied consistently

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.

4 participants