-
-
Notifications
You must be signed in to change notification settings - Fork 344
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 one to many inline table #791
fix one to many inline table #791
Conversation
@@ -22,7 +22,8 @@ file that was distributed with this source code. | |||
{% if nested_field.vars['required'] %} | |||
class="required" | |||
{% endif %} | |||
{% if (nested_field.vars['attr']['hidden'] is defined) and (nested_field.vars['attr']['hidden']) %} | |||
{% if (((nested_field.vars['attr']['hidden'] is defined) and (nested_field.vars['attr']['hidden'])) |
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.
The extra parens you are adding are unnecessary because of operator precedence I think
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.
Yes, first is totally unnecessary (habit from PHP). But second makes it more friendly to read.
@@ -22,7 +22,8 @@ file that was distributed with this source code. | |||
{% if nested_field.vars['required'] %} | |||
class="required" | |||
{% endif %} | |||
{% if (nested_field.vars['attr']['hidden'] is defined) and (nested_field.vars['attr']['hidden']) %} | |||
{% if (((nested_field.vars['attr']['hidden'] is defined) and (nested_field.vars['attr']['hidden'])) | |||
or (nested_field.vars.sonata_admin.field_description and nested_field.vars.sonata_admin.field_description.type == 'Sonata\\AdminBundle\\Form\\Type\\ModelHiddenType')) %} |
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.
Please linebreak this
This template is deprecated. If any, this belongs to the admin bundle |
Ok, you are right. I didn't see this^^ |
I am targeting this branch, because there is no BC-break.
Closes #790
Changelog
Subject
Changes inside
edit_orm_one_to_many_inline_table.html.twig
template.