mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Address issue #8038
Within TinyMCE, adding a link to "page on the site" generates an error "Target page not found" under the Anchor field.
This commit is contained in:
parent
f30cd61cb7
commit
766b2a4947
@ -570,7 +570,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
$id = (int)$this->getRequest()->getVar('PageID');
|
$id = (int)$this->getRequest()->getVar('PageID');
|
||||||
$anchors = array();
|
$anchors = array();
|
||||||
|
|
||||||
if (($page = Page::get()->byID($id)) && !empty($page)) {
|
if (($page = SiteTree::get()->byID($id)) && !empty($page)) {
|
||||||
if (!$page->canView()) {
|
if (!$page->canView()) {
|
||||||
throw new SS_HTTPResponse_Exception(
|
throw new SS_HTTPResponse_Exception(
|
||||||
_t(
|
_t(
|
||||||
|
Loading…
Reference in New Issue
Block a user