Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with nette/forms v3.1.0 - Undefined index: perPage #944

Closed
elring opened this issue Jan 20, 2021 · 2 comments
Closed

Incompatibility with nette/forms v3.1.0 - Undefined index: perPage #944

elring opened this issue Jan 20, 2021 · 2 comments

Comments

@elring
Copy link
Contributor

elring commented Jan 20, 2021

Hello :)
After today upgrade, I got Undefined index: perPage - File: .../vendor/ublaboo/datagrid/src/DataGrid.php:1509
1509: $this->saveSessionData('_grid_perPage', $values['perPage']);
Error occurs after pressing Save button in inline edit.

The problem is not in new version of Datagrid, but in some incompatibility with new Nette Forms (which new version is from 2020/01/19). It appears after upgrade nette/forms from v3.0.7 to v3.1.0. Datagrid v6.6.1 with Nette 3.0.7 is ok, with Nette 3.1.0 is not.

Problem is (probably) in nette/forms BC break mentioned in release notes (Form::getValues() returns only controls in scope (BC break)). Inline editor submit buttons don't validate the perPage control, so new nette/forms doesn't return it's value.

@paveljanda
Copy link
Member

Looking into that 👍

@paveljanda
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants