platform
platform copied to clipboard
Bug: Datagrid Fillter with type Choice and default value does not work correctly on v2.6.1
I set the default value for the status and it worked but when I press the X, values in the grid are not reset, but remain the filtered by default value. Example of a filter configuration in datagrid:
filters:
columns:
status:
type: choice
data_name: status.id
options:
field_options:
choices: "@example.manager.status->getList"
default:
vehicleStatus:
value: "@example.manager.status->getAvailableStatusId"
Expected behaviour
If we show the filter to the users - they should be able to remove it. If we do not want the users to select "All" in the filter in some grid - then the filter should be customized for this grid to remove this option, otherwise the users should be able to select any option and apply it.
Hi @NikDevPHP,
Thank you for reporting the issue! We greatly appreciate all contributions to Oro projects. Internal issue id: BAP-16998
I updated the issue with expected behaviour.
We are having this issue currently. Was there any progress on fixing this in Oro 3.1+?
Hi Dylan,
Nothing changed here yet. Feel free to contribute the fix to the OroPlatform package if it's critical for your project.
Also, if someone already have a workaround, we highly appreciate knowledge sharing.