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
This commit is contained in:
Sam Minnee 2010-10-04 05:31:35 +00:00
parent b1cc843801
commit 994e60aea8

View File

@ -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) {