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
Fixes form throwing exception when rendering from module #26986
Conversation
@@ -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']}) }} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always good to check 🎉
There was a problem hiding this 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>
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 ^^ |
This change is