mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 08:59:42 +02:00
Moving a field between tabs, wrong variable name
This commit is contained in:
parent
7a462cecef
commit
9b1a4b328c
|
@ -37,7 +37,7 @@ display up to two levels of tabs in the interface. If you want to group data fur
|
|||
## Moving a field between tabs
|
||||
|
||||
:::php
|
||||
$field = $fields->dataFieldByName('Content');
|
||||
$content = $fields->dataFieldByName('Content');
|
||||
|
||||
$fields->removeFieldFromTab('Root.Main', 'Content');
|
||||
$fields->addFieldToTab('Root.MyContent', $content);
|
||||
|
@ -52,4 +52,4 @@ display up to two levels of tabs in the interface. If you want to group data fur
|
|||
|
||||
## API Documentation
|
||||
|
||||
* [api:FormScaffolder]
|
||||
* [api:FormScaffolder]
|
||||
|
|
Loading…
Reference in New Issue
Block a user