From 994e60aea89054917cee0356cf45ce3f1c363fe5 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 05:31:35 +0000 Subject: [PATCH] BUGFIX: Fix not being able to print/export reports (from r98684) (from r99128) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111609 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ReportAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index 57c24345..98295eb9 100755 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -77,7 +77,7 @@ class ReportAdmin extends LeftAndMain { * @return SS_Report */ public function CurrentReport() { - $id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : Session::get('currentReport'); + $id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : ($this->getRequest()->latestParam('Action') == 'EditForm') ? Session::get('currentReport') : null; if($id) { foreach($this->Reports() as $report) {