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

DataTransformer not called on filter fields #50

Open
shylux opened this issue Mar 16, 2020 · 0 comments
Open

DataTransformer not called on filter fields #50

shylux opened this issue Mar 16, 2020 · 0 comments
Labels
Bug Confirmed bugs or bugfixes.

Comments

@shylux
Copy link

shylux commented Mar 16, 2020

I will start this with a disclaimer that we have some customization on top of you bundle so it might not be a SyliusGridBundle error, but i think it is.

I used the DateFilter which gave me incorrect results. Upon inspection i saw that the Query used my localized date format. This localized date format should have been transformed by the default symfony date field type (i customized the filtertype to use that field).
Using some dump statements i discovered that the filter type data transformer is called after the the filter is applied. So the filter is using raw query data.

With some more digging i saw that your implementation does register a view transformer -> (transformer). But you do the same thing in the filter.

Can you look into it? Thanks 👍

@lchrusciel lchrusciel added the Bug Confirmed bugs or bugfixes. label Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

No branches or pull requests

2 participants