diff --git a/code/reports/Report.php b/code/reports/Report.php index 53f45b0f..ee151b40 100644 --- a/code/reports/Report.php +++ b/code/reports/Report.php @@ -285,7 +285,7 @@ class SS_Report extends ViewableData { if(isset($info['link']) && $info['link']) { $fieldFormatting[$source] = function($value, &$item) { return sprintf( - '%s', + '%s', Controller::join_links(singleton('CMSPageEditController')->Link('show'), $item->ID), Convert::raw2xml($value) ); diff --git a/tests/behat/features/view-reports.feature b/tests/behat/features/view-reports.feature index a51fe80a..837eb66a 100644 --- a/tests/behat/features/view-reports.feature +++ b/tests/behat/features/view-reports.feature @@ -12,4 +12,7 @@ Feature: View Reports Scenario: I can view the "Pages with no content" report When I follow "Pages with no content" Then I should see "Empty Page" - But I should not see "Filled Page" \ No newline at end of file + But I should not see "Filled Page" + When I follow "Empty Page" + Then I should see an edit page form + And the "Page name" field should contain "Empty Page" \ No newline at end of file