Skip to content

Commit

Permalink
Merge branch '4.12' into 4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Apr 23, 2023
2 parents 873c697 + 241fa3e commit cd7fe60
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,15 @@ public function getAbsoluteLiveLink($includeStageEqualsLive = true)
/**
* Generates a link to edit this page in the CMS.
*
* Implemented here to satisfy the CMSPreviewable interface, but data is intended to be loaded via Extension
*
* @see SilverStripe\Admin\CMSEditLinkExtension
*
* @return string
*/
public function CMSEditLink()
{
// This method has to be implemented here to satisfy the CMSPreviewable interface.
// See the actual implementation in CMSEditLinkExtension.
return $this->extend('CMSEditLink')[0];
return $this->extend('CMSEditLink')[0] ?? '';
}

/**
Expand Down

0 comments on commit cd7fe60

Please sign in to comment.