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
This commit is contained in:
Sam Minnee 2010-02-04 04:37:19 +00:00
parent da57175a2d
commit fd38303749

View File

@ -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();
}
}
?>