mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5700 from Ironcheese/patch-1
Moving a field between tabs, wrong variable name
This commit is contained in:
commit
ce11c47d00
@ -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
|
## Moving a field between tabs
|
||||||
|
|
||||||
:::php
|
:::php
|
||||||
$field = $fields->dataFieldByName('Content');
|
$content = $fields->dataFieldByName('Content');
|
||||||
|
|
||||||
$fields->removeFieldFromTab('Root.Main', 'Content');
|
$fields->removeFieldFromTab('Root.Main', 'Content');
|
||||||
$fields->addFieldToTab('Root.MyContent', $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 Documentation
|
||||||
|
|
||||||
* [api:FormScaffolder]
|
* [api:FormScaffolder]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user