mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 22:28:37 +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
|
## 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user