From cd497a6cee4cefa8c826dae7cadc8f34c4a4d357 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Oct 2010 04:18:29 +0000 Subject: [PATCH] MINOR: Fix to ModelAdmin, part of r103519 (from r103533) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112170 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ModelAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() );