mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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,7 +123,8 @@ class ReportAdmin extends LeftAndMain {
|
|||||||
*/
|
*/
|
||||||
public function EditForm($request = null) {
|
public function EditForm($request = null) {
|
||||||
$className = Session::get('currentPage');
|
$className = Session::get('currentPage');
|
||||||
$requestId = $request ? $request->requestVar('ID') : null;
|
$requestId = $this->getRequest()->requestVar('ID');
|
||||||
|
if(!$requestId) $requestId = $this->getRequest()->latestParam('ID');
|
||||||
|
|
||||||
if ( $requestId )
|
if ( $requestId )
|
||||||
return $this->getEditForm($requestId);
|
return $this->getEditForm($requestId);
|
||||||
@ -163,7 +164,7 @@ class ReportAdmin extends LeftAndMain {
|
|||||||
$actions = $obj->getCMSActions();
|
$actions = $obj->getCMSActions();
|
||||||
|
|
||||||
$form = new Form($this, 'EditForm', $fields, $actions);
|
$form = new Form($this, 'EditForm', $fields, $actions);
|
||||||
|
$form->setTemplate('ReportAdminForm');
|
||||||
$form->loadDataFrom($this->request->requestVars());
|
$form->loadDataFrom($this->request->requestVars());
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
|
Loading…
Reference in New Issue
Block a user