Permalink
Browse files

BUGFIX Using SiteTree->MenuTitle in SiteTree->getCMSFields() parent p…

…age tree field, to stay consistent with CMS tree (fixes #6268) (copied from 2449a2b)
  • Loading branch information...
1 parent 3380bc6 commit 9505be1e78630586e056c769bb4f2968d3b73a08 @chillu chillu committed Mar 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/SiteTree.php
View
@@ -1780,7 +1780,7 @@ function getCMSFields() {
"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')),

0 comments on commit 9505be1

Please sign in to comment.