FIX Fixed issue where items were created without being run through DI

This commit is contained in:
nyeholt 2013-11-22 15:00:08 +11:00
parent 56422aede2
commit 49a75b6239

View File

@ -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) {