Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[WebProfilerBundle] Fixed error from unset twig variable#18457
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[WebProfilerBundle] Fixed error from unset twig variable#18457
Uh oh!
There was an error while loading.Please reload this page.
Conversation
javiereguiluz commentedApr 6, 2016
@simonsargeant thanks for fixing this. It looks good to me 👍 However, there is a big problem with the code we use for this: {%if'n/a'!=collector.debug %} ...{%endif %}
Should we fix that in this PR or create a new PR? |
stof commentedApr 6, 2016
@javiereguiluz do we actually need the color here ? |
javiereguiluz commentedApr 6, 2016
@stof I don't have a strong opinion about this. But the color may be consistent with other colored blocks in that panel and it doesn't hurt:
|
simonsargeant commentedApr 6, 2016
@javiereguiluz I think this is now expected behavior as collector.debug could be boolean or 'n/a'https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php#L69. Does not show the debug status if 'n/a', shows activated or deactivated if true or false. |
javiereguiluz commentedApr 6, 2016
@simonsargeant yes, the collector can be
So the only scenario where this is |
simonsargeant commentedApr 6, 2016
@javiereguiluz Sorry, I meant I had updated the PR so the behaviour is now:
|
javiereguiluz commentedApr 6, 2016
👍 Thanks@simonsargeant |
stof commentedApr 7, 2016
👍 |
fabpot commentedApr 7, 2016
Thank you@simonsargeant. |
…simonsargeant)This PR was squashed before being merged into the 2.8 branch (closes#18457).Discussion----------[WebProfilerBundle] Fixed error from unset twig variable| Q | A| ------------- | ---| Branch? | 2.8| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aMinor bug, fixes error from twig variable which was removed in 2.8Here was where it was originally sethttps://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig#L69Replaced with expected class nameCommits-------3e2c4c9 [WebProfilerBundle] Fixed error from unset twig variable
…iable (simonsargeant)This PR was squashed before being merged into the 2.8 branch (closessymfony#18457).Discussion----------[WebProfilerBundle] Fixed error from unset twig variable| Q | A| ------------- | ---| Branch? | 2.8| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aMinor bug, fixes error from twig variable which was removed in 2.8Here was where it was originally sethttps://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig#L69Replaced with expected class nameCommits-------3e2c4c9 [WebProfilerBundle] Fixed error from unset twig variable


Minor bug, fixes error from twig variable which was removed in 2.8
Here was where it was originally sethttps://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig#L69
Replaced with expected class name