datagrid
datagrid copied to clipboard
items detail form submit - undefined property
nette/forms v3.0.7, ublaboo/datagrid v6.7.6 - OK nette/forms v3.1.6, ublaboo/datagrid v6.9.2 - Undefined property: Nette\Utils\ArrayHash::$id after using $values->id:
$grid->setItemsDetailForm(function(Nette\Forms\Container $container) use ($grid, $presenter) {
$container->addHidden('id');
$container->addText('name');
$container->addSubmit('save', 'Save')
->setValidationScope([$container])
->onClick[] = function($button) use ($grid, $presenter) {
$values = $button->getParent()->getValues();
};
});
still problem with datagrid v6.9.4 fix: $values = $button->getParent()->getUnsafeValues(null);
Still problem in next branch. @tonyp90 Do you know, what does cause the problem? Some changes in nette/forms?
There was some changes between forms 3.0 and 3.1 which caused more problems than just this.
Which another problems do you mention?
https://github.com/contributte/datagrid/issues/944 https://github.com/contributte/datagrid/issues/979