APY / APYDataGridBundle

Symfony Datagrid Bundle
MIT License
492 stars 344 forks source link

Column with id "tweaks" doesn't exists #1016

Open GSpecDrum opened 6 years ago

GSpecDrum commented 6 years ago

When i apply some tweak, it was saved in session. After, i try to get applied column filters by call $grid->getFilters(), but in this method code will walk through $grid->sessionData, where are saved grid tweaks.

Then code try to get column by name tweaks, which it get from session and throw this exeption, because entity don't have this column.

Need to add to $requestQueries array in method getFilters() another item with value 'tweaks' to unset them from $session variable.

https://github.com/APY/APYDataGridBundle/blob/78e3bed18d330bce082024769f64ccfc99fc368d/Grid/Grid.php#L2196-L2239