Merge pull request #2287 from sb-relaxt-at/4.2

Fixing wrong Live-Preview-Link in SilverStripeNavigatorItem_LiveLink
This commit is contained in:
Maxime Rainville 2018-11-23 10:05:05 +13:00 committed by GitHub
commit 44b600814a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem
public function getLink() public function getLink()
{ {
return Controller::join_links($this->record->PreviewLink(), '?stage=Live'); return Controller::join_links($this->getLivePage()->PreviewLink(), '?stage=Live');
} }
public function canView($member = null) public function canView($member = null)