Merge pull request #5700 from Ironcheese/patch-1

Moving a field between tabs, wrong variable name
This commit is contained in:
Damian Mooyman 2016-07-12 13:58:54 +12:00 committed by GitHub
commit ce11c47d00

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]