Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixing incorrect URL to edit canonical page on VirtualPage

  • Loading branch information...
commit 7ed09917ac3ded499f57bbf1379b6e1fbfd70789 1 parent 0515555
Sean Harvey halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/model/VirtualPage.php
4 code/model/VirtualPage.php
View
@@ -195,8 +195,8 @@ function getCMSFields() {
$fields->addFieldToTab("Root.Main", $copyContentFromField, "Title");
// Create links back to the original object in the CMS
- if($this->CopyContentFrom()->ID) {
- $linkToContent = "<a class=\"cmsEditlink\" href=\"admin/show/$this->CopyContentFromID\">" .
+ if($this->CopyContentFrom()->exists()) {
+ $linkToContent = "<a class=\"cmsEditlink\" href=\"admin/pages/edit/show/$this->CopyContentFromID\">" .
_t('VirtualPage.EDITCONTENT', 'click here to edit the content') . "</a>";
$fields->addFieldToTab("Root.Main",
$linkToContentLabelField = new LabelField('VirtualPageContentLinkLabel', $linkToContent),
Please sign in to comment.
Something went wrong with that request. Please try again.