mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
FIX Fixed issue where items were created without being run through DI
This commit is contained in:
parent
56422aede2
commit
49a75b6239
@ -137,7 +137,7 @@ class GridFieldAddNewInlineButton implements GridField_HTMLProvider, GridField_S
|
||||
}
|
||||
|
||||
foreach($value[__CLASS__] as $fields) {
|
||||
$item = new $class();
|
||||
$item = $class::create();
|
||||
$extra = array();
|
||||
|
||||
if($list instanceof ManyManyList) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user