Merge pull request #39 from nyeholt/master

FIX Fixed issue where items were created without being run through DI
This commit is contained in:
Andrew Short 2013-11-21 20:19:50 -08:00
commit 5eec0f70b4

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