BUGFIX Fixed undefined $this->Parent in SiteTree::getCMSFields()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@95422 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-12-15 03:45:12 +00:00 committed by Sam Minnee
parent a3b377289d
commit 465a15b536

View File

@ -1546,7 +1546,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
new FieldGroup(_t('SiteTree.URL', "URL"),
new LabelField('BaseUrlLabel',Controller::join_links (
Director::absoluteBaseURL(),
(self::nested_urls() && $this->ParentID ? $this->Parent->RelativeLink(true) : null)
(self::nested_urls() && $this->ParentID ? $this->Parent()->RelativeLink(true) : null)
)),
new UniqueRestrictedTextField("URLSegment",
"URLSegment",