oroinc / platform

Main OroPlatform package with core functionality.
MIT License
629 stars 351 forks source link

Bug: Datagrid Fillter with type Choice and default value does not work correctly on v2.6.1 #836

Open NikDevPHP opened 6 years ago

NikDevPHP commented 6 years ago

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.

anyt commented 6 years ago

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.

dylanenabled commented 4 years ago

We are having this issue currently. Was there any progress on fixing this in Oro 3.1+?

anyt commented 4 years ago

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.

Dnd-Luk commented 3 months ago

Hi @anyt,

Any update on this? I have the issue on OroPlatform 4.2.

Thanks

anyt commented 3 months ago

Hi, It's not fixed yet and is open for contributions