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() (from r95422)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95638 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bf19a704a4
commit
ba2066b8dd
@ -1584,7 +1584,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 TextField("URLSegment","URLSegment"),
|
||||
new LabelField('TrailingSlashLabel',"/")
|
||||
|
Loading…
Reference in New Issue
Block a user