Skip to content

[2.3][WebProfilerBundle] fix debug toolbar rendering by removing inadvertently added links #17976

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

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

craue
Copy link
Contributor

@craue craue commented Mar 1, 2016

Q A
Branch 2.3+
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

The debug toolbar was broken by #17527...

before
debug-toolbar-link-a

and after
debug-toolbar-link-b

explanation
If false is explicitly passed for link then link | default(true) would evaluate to true, which is not what we want. The correct expression link is not defined or link was suggested originally in #16653.

@craue
Copy link
Contributor Author

craue commented Mar 1, 2016

Do you want me to create a separate PR for 2.8 as well?

@stof
Copy link
Member

stof commented Mar 1, 2016

👍 for this

@craue depends whether the patch can apply cleanly or no.

@fabpot
Copy link
Member

fabpot commented Mar 1, 2016

Thank you @craue.

@fabpot fabpot merged commit a0ddfc4 into symfony:2.3 Mar 1, 2016
fabpot added a commit that referenced this pull request Mar 1, 2016
…moving inadvertently added links (craue)

This PR was merged into the 2.3 branch.

Discussion
----------

[2.3][WebProfilerBundle] fix debug toolbar rendering by removing inadvertently added links

| Q             | A
| ------------- | ---
| Branch        | 2.3+
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The debug toolbar was broken by #17527...

**before**
![debug-toolbar-link-a](https://cloud.githubusercontent.com/assets/800119/13433728/7c48c382-dfd3-11e5-8432-299bfa143647.png)

**and after**
![debug-toolbar-link-b](https://cloud.githubusercontent.com/assets/800119/13433732/7fd97dc0-dfd3-11e5-80c6-62c009447a2e.png)

**explanation**
If `false` is explicitly passed for `link` then `link | default(true)` would evaluate to `true`, which is not what we want. The correct expression `link is not defined or link` was suggested originally in #16653.

Commits
-------

a0ddfc4 fix debug toolbar rendering by removing inadvertently added links
@fabpot
Copy link
Member

fabpot commented Mar 1, 2016

I've fixed the conflict myself when merging to 2.8. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants