Permalink
Browse files

BUG CMS pages list view link targets (fixes #7589)

Previously broken in e7ecdf4
  • Loading branch information...
1 parent c1aad0d commit d77c43d6c703b9646c6b46855d2425e5af8665f5 @chillu chillu committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/controllers/CMSMain.php
View
2 code/controllers/CMSMain.php
@@ -715,7 +715,7 @@ public function ListViewForm() {
}
},
'getTreeTitle' => function($value, &$item) use($controller) {
- return '<a class="cms-panel-link" href="' . $controller->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
+ return '<a class="cms-panel-link" href="' . singleton('CMSPageEditController')->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
}
));

0 comments on commit d77c43d

Please sign in to comment.