From 2449a2b5c639384de75a55ef752e2efba8c513f3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 10 Mar 2011 15:25:52 +1300 Subject: [PATCH] BUGFIX Using SiteTree->MenuTitle in SiteTree->getCMSFields() parent page tree field, to stay consistent with CMS tree (fixes #6268) --- core/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 5d3c77762..d6d219ecb 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1779,7 +1779,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid "root" => _t("SiteTree.PARENTTYPE_ROOT", "Top-level page"), "subpage" => _t("SiteTree.PARENTTYPE_SUBPAGE", "Sub-page underneath a parent page (choose below)"), )), - $parentIDField = new TreeDropdownField("ParentID", $this->fieldLabel('ParentID'), 'SiteTree'), + $parentIDField = new TreeDropdownField("ParentID", $this->fieldLabel('ParentID'), 'SiteTree', 'ID', 'MenuTitle'), new CheckboxField("ShowInMenus", $this->fieldLabel('ShowInMenus')), new CheckboxField("ShowInSearch", $this->fieldLabel('ShowInSearch')),