From fd38303749aaa872cfc01057f11c906a6c7bf2b6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:37:19 +0000 Subject: [PATCH] MINOR applied correct decorators MINOR Page.ss now takes advantage of the SiteConfig FEATURE audit trails MINOR fixed JS error around concurrent editing MINOR ability to disable sorting on tablelistfield MINOR added default timezone to static-main.php to avoid PHP warnings MINOR only display Roles tab on groups if there are roles in the system MINOR publishing activity report ENHANCEMENT ability to parameterize SSReport's (from r85903) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98156 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ReportAdmin.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index a1db6556..7e67141d 100755 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -171,7 +171,7 @@ class ReportAdmin extends LeftAndMain { $ids[] = $obj->ID(); } } - + if($id && in_array($id, $ids)) return $this->reportEditFormFor($id); else return false; } @@ -197,12 +197,15 @@ class ReportAdmin extends LeftAndMain { $obj = new $reportClass(); if($obj) $fields = $obj->getCMSFields(); + if($obj) $actions = $obj->getCMSActions(); $idField = new HiddenField('ID'); $idField->setValue($id); $fields->push($idField); $form = new Form($this, 'EditForm', $fields, $actions); + + $form->loadDataFrom($_REQUEST); return $form; } @@ -227,6 +230,16 @@ class ReportAdmin extends LeftAndMain { } return false; } + + public function updatereport() { + FormResponse::load_form($this->EditForm()->renderWith('Form')); + FormResponse::add("$('tab-Root_Report').onclick();"); + return FormResponse::respond(); + } } + + + + ?>