Skip to content

Commit

Permalink
BUGFIX Fixing incorrect URL to edit canonical page on VirtualPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed May 22, 2012
1 parent 0515555 commit 7ed0991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/model/VirtualPage.php
Expand Up @@ -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),
Expand Down

0 comments on commit 7ed0991

Please sign in to comment.