Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #4643 [3.5] Regression Fix - Remove text align as it overwrites t…
…he attribute (breaks some custom fields) (Schyzophrenic) This PR was squashed before being merged into the 4.x branch. Discussion ---------- [3.5] Regression Fix - Remove text align as it overwrites the attribute (breaks some custom fields) This change fixes some Custom fields post 3.5 migration, The $textAlign variable overwrote any other attribute which could have been defined in a Custom field and would therefore prevent them from working properly. I am not sure why this was introduced, but we surely can handle the same via a css class instead. I didn't observe any noticeable changes. This seems quite critical to me to be able to use the attr to pass on parameters to the fields. Commits ------- aa2bc5a [3.5] Regression Fix - Remove text align as it overwrites the attribute (breaks some custom fields)
- Loading branch information
06ca05a
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.
Hi,
EasyAdminBundle/src/Resources/views/crud/index.html.twig
Line 148 in 9ceec6d
Look at the end,
text-{{ field.textAlign }}
. There is no default value so I havetext-
now.06ca05a
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.
@Ang3 yes, but it's OK because it doesn't have any practical affect (I mean, it doesn't break anything in the design).
06ca05a
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.
@javiereguiluz Thank your for your fast answer. I don't know if this PR breaks the association field, but now all my association fields are aligned to the right (but I'm in LTR).
EasyAdminBundle/src/Field/Configurator/AssociationConfigurator.php
Lines 169 to 171 in 9ceec6d
I had to create a configurator to modify this alignment. Maybe we should take care of the intl mode here (LTR/RTL).
06ca05a
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.
I've created a new issue to not forget about solving this problem: #5342