Merge pull request #4641 from LiamW/patch-2

fixed minor GridField initialization syntax.
This commit is contained in:
Will Morgan 2015-10-01 09:37:57 +01:00
commit 92970f8a8c

View File

@ -67,7 +67,7 @@ the `getConfig()` method on `GridField`.
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Pages',
$grid = GridField('Pages', 'All pages', SiteTree::get())
$grid = new GridField('Pages', 'All pages', SiteTree::get())
);
// GridField configuration