Merge pull request #1579 from tractorcow/pulls/3.4/fix-settings-border

BUG Fix extra border in page settings
This commit is contained in:
Daniel Hensby 2016-08-09 16:56:18 +01:00 committed by GitHub
commit a6fae9b35b

View File

@ -2064,7 +2064,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$this->getClassDropdown()
),
$parentTypeSelector = new CompositeField(
new OptionsetField("ParentType", _t("SiteTree.PAGELOCATION", "Page location"), array(
$parentType = new OptionsetField("ParentType", _t("SiteTree.PAGELOCATION", "Page location"), array(
"root" => _t("SiteTree.PARENTTYPE_ROOT", "Top-level page"),
"subpage" => _t("SiteTree.PARENTTYPE_SUBPAGE", "Sub-page underneath a parent page"),
)),
@ -2100,6 +2100,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
)
);
$parentType->addExtraClass('noborder');
$visibility->setTitle($this->fieldLabel('Visibility'));