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

Fixes form throwing exception when rendering from module #26986

Conversation

JevgenijVisockij
Copy link
Contributor

@JevgenijVisockij JevgenijVisockij commented Dec 14, 2021

Questions Answers
Branch? develop
Description? Fixes issue with form throwing exception in certain cases when rendering from module
Type? bug fix
Category? BO
BC breaks? no
Deprecations? no
Fixed ticket? Fixes #26786
How to test? Should not be able to reproduce bug described in issue

This change is Reviewable

@JevgenijVisockij JevgenijVisockij requested a review from a team as a code owner December 14, 2021 16:45
@prestonBot prestonBot added develop Branch Bug fix Type: Bug fix labels Dec 14, 2021
@@ -274,7 +274,7 @@
{% endif %}
{{ extraVars.label }}

{% if form.vars.label_attr and form.vars.label_attr['popover'] %}
{% if form.vars.label_attr is defined and form.vars.label_attr and form.vars.label_attr['popover'] %}
{{ include('@Common/HelpBox/helpbox.html.twig', {'content': form.vars.label_attr['popover']}) }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we still need and form.vars.label_attr part, I guess it's helpful to check it's not false.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always good to check 🎉

Copy link
Contributor

@jolelievre jolelievre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JevgenijVisockij just a small comment

Changed is defined logic

Co-authored-by: Jonathan Lelievre <jo.lelievre@gmail.com>
@matks matks added the migration symfony migration project label Dec 15, 2021
@jolelievre
Copy link
Contributor

Thanks @JevgenijVisockij I'm sorry I'm gonna close this PR in favor of this one #26987

I know you created yours first, but the other one already targets the right branch and fixes the 178 CI so it's more urgent ^^

@jolelievre jolelievre closed this Dec 16, 2021
@JevgenijVisockij JevgenijVisockij deleted the form-rendering-error-fix branch December 16, 2021 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug fix Type: Bug fix develop Branch migration symfony migration project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with dynamical form rendering in 1.7.8.1
4 participants