Skip to content

Commit

Permalink
Merge pull request #39 from nyeholt/master
Browse files Browse the repository at this point in the history
FIX Fixed issue where items were created without being run through DI
  • Loading branch information
ajshort committed Nov 22, 2013
2 parents 56422ae + 49a75b6 commit 5eec0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/GridFieldAddNewInlineButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function handleSave(GridField $grid, DataObjectInterface $record) {
}

foreach($value[__CLASS__] as $fields) {
$item = new $class();
$item = $class::create();
$extra = array();

if($list instanceof ManyManyList) {
Expand Down

0 comments on commit 5eec0f7

Please sign in to comment.