Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENHANCMENT: Link pages in reports to cms edit

  • Loading branch information...
commit 9888f980aae131599cea5a8afe6c3397ee29f55e 1 parent 8df5cd7
@ajoneil ajoneil authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 code/controllers/ReportAdmin.php
View
5 code/controllers/ReportAdmin.php
@@ -170,6 +170,11 @@ public function getEditForm($id = null, $fields = null) {
if(isset($info['csvFormatting'])) $csvFieldFormatting[$source] = $info['csvFormatting'];
if(isset($info['casting'])) $fieldCasting[$source] = $info['casting'];
+ if(isset($info['link']) && $info['link']) {
+ $link = singleton('CMSPageEditController')->Link('show');
+ $fieldFormatting[$source] = '<a href=\"' . $link . '/$ID\">$value</a>';
+ }
+
$displayFields[$source] = isset($info['title']) ? $info['title'] : $source;
}
$gridField->setDisplayFields($displayFields);
Please sign in to comment.
Something went wrong with that request. Please try again.