MINOR Ussing currentPageID() in ReportAdmin instead of hardcoding to

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92764 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:27 +00:00
parent e13bb588d3
commit 3fb7c27ae3

View File

@ -158,7 +158,7 @@ class ReportAdmin extends LeftAndMain {
*/
public function EditForm() {
$ids = array();
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : Session::get('currentPage');
$id = $this->currentPageID();
$subClasses = $this->getReportClassNames();
if($subClasses) {