platform icon indicating copy to clipboard operation
platform copied to clipboard

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

Open NikDevPHP opened this issue 6 years ago • 5 comments

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.

NikDevPHP avatar Apr 26 '18 15:04 NikDevPHP

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.

anyt avatar Apr 30 '18 14:04 anyt

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

dylanenabled avatar Sep 01 '20 06:09 dylanenabled

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.

anyt avatar Sep 01 '20 11:09 anyt