ENHANCEMENT: Improved look and feel for report filtering

ENHANCEMNT: Added export and print buttons to reports (from r95815) (from r98173)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105686 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 23:57:38 +00:00
parent f4a545948f
commit 5a41ff6b1f

View File

@ -123,7 +123,8 @@ class ReportAdmin extends LeftAndMain {
*/
public function EditForm($request = null) {
$className = Session::get('currentPage');
$requestId = $request ? $request->requestVar('ID') : null;
$requestId = $this->getRequest()->requestVar('ID');
if(!$requestId) $requestId = $this->getRequest()->latestParam('ID');
if ( $requestId )
return $this->getEditForm($requestId);
@ -163,7 +164,7 @@ class ReportAdmin extends LeftAndMain {
$actions = $obj->getCMSActions();
$form = new Form($this, 'EditForm', $fields, $actions);
$form->setTemplate('ReportAdminForm');
$form->loadDataFrom($this->request->requestVars());
return $form;