mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Removed legacy disabling of security token and strict form method check
for nested gridfields, doesn't seem to be needed anymore.
This commit is contained in:
parent
c517c693f9
commit
70b838ea8c
@ -119,8 +119,6 @@ class GridFieldNestedFormItemRequest extends GridFieldDetailForm_ItemRequest
|
|||||||
$gridField->setAttribute('data-class', str_replace('\\', '-', $relationClass));
|
$gridField->setAttribute('data-class', str_replace('\\', '-', $relationClass));
|
||||||
$gridField->addExtraClass('nested');
|
$gridField->addExtraClass('nested');
|
||||||
$form = new Form($this, 'ItemEditForm', $fields, new FieldList());
|
$form = new Form($this, 'ItemEditForm', $fields, new FieldList());
|
||||||
$form->setStrictFormMethodCheck(false);
|
|
||||||
$form->disableSecurityToken();
|
|
||||||
|
|
||||||
$className = str_replace('\\', '-', get_class($this->record));
|
$className = str_replace('\\', '-', get_class($this->record));
|
||||||
$state = $this->gridField->getState()->GridFieldNestedForm;
|
$state = $this->gridField->getState()->GridFieldNestedForm;
|
||||||
|
Loading…
Reference in New Issue
Block a user