mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
parents-merge 33211 - Added getReportField & filter_onchange options to DataReports
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45045 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8547c5c333
commit
afbca3a88f
@ -517,7 +517,8 @@ HTML
|
||||
}
|
||||
|
||||
protected function getReportType() {
|
||||
return 'DataReport';
|
||||
if(class_exists($this->name)) return $this->name;
|
||||
else return $this->class;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -568,7 +569,10 @@ class DataReport_Controller extends Controller{
|
||||
$sord = array("Order.ID"=>"DESC"),
|
||||
$join = array("MemberID"=>array("table"=>"Member", "field"=>"ID"))
|
||||
);
|
||||
$orderReport->filter_onchange();
|
||||
|
||||
if($orderReport->hasMethod('getReportField')) $orderReport = $orderReport->getReportField();
|
||||
|
||||
if($orderReport->hasMethod('filter_onchange')) $orderReport->filter_onchange();
|
||||
$orderReport->exportToCSV("report.csv");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user