Fixed favourite page dropdown placement

See https://github.com/silverstripe/silverstripe-cms/issues/387
This commit is contained in:
Ingo Schommer 2014-03-16 16:00:35 +13:00
parent 884b5305ed
commit f68cfda091

View File

@ -7,7 +7,10 @@ class FrameworkTestRole extends DataExtension {
);
function updateCMSFields(FieldList $fields) {
$fields->push(new TreeDropdownField("FavouritePageID", "Favourite page", "SiteTree"));
$fields->addFieldToTab(
'Root.Main',
new TreeDropdownField("FavouritePageID", "Favourite page", "SiteTree")
);
}
function requireDefaultRecords() {