mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4641 from LiamW/patch-2
fixed minor GridField initialization syntax.
This commit is contained in:
commit
92970f8a8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user