mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
a3b377289d
commit
465a15b536
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user