mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
f4a545948f
commit
5a41ff6b1f
@ -123,8 +123,9 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user