diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 138d0562..32a59722 100755 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -428,7 +428,7 @@ class ModelAdmin_CollectionController extends Controller { $form = new Form($this, "CreateForm", new FieldSet(), - $createButton = new FormAction('add', $buttonLabel), + new FieldSet($createButton = new FormAction('add', $buttonLabel)), $validator = new RequiredFields() );