mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-09-28 20:29:06 +02: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…
Reference in New Issue
Block a user