Moving a field between tabs, wrong variable name

This commit is contained in:
Ironcheese 2016-06-15 15:36:43 +02:00 committed by GitHub
parent 7a462cecef
commit 9b1a4b328c

View File

@ -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]