So I need to delete multiple records from a data grid and the query in datagrid.yml file has multiple parameters like “:param_1”, “:param_2″…
The data grid is generated like:
1
2
3
4
5
6
7
8
9
10
11
dataGrid.renderGrid(
'acme-grid',
{
'param_1':'111',
'param_2':'222',
'param_3':'333'
},
{'cssClass':'inner-grid'}
)
According to my FireBug it does not send those parameters when mass action is executed as the request URL is like this (as not including the parameters “param_1”, “param_2″…):
And I am actually not sure if I have to send “param_X” because technically I do not need them to delete a record as the request URL is sending the id with the query “values”.
And I am guessing I have to send the parameters to make DQL work for the data grid after having a look at the classes: Oro\Bundle\DataGridBundle\Extension\MassAction\MassActionDispatcher and Oro\Bundle\DataGridBundle\Extension\MassAction\DeleteMassActionHandler
Seems that this is a bug in “mass actions”, because all params that grid needs in order to fetch data is also required for mass action. We do no send all checked IDs for mass action we only send a selected and unselected arrays in special syntax in order to be able to remove thousands of records by single request.
We will investigate it and will keep you posted. Thank you!
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.