mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR don't remember what report you had selected in ReportAdmin (from r98560)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99122 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
340230b9c9
commit
7e6ae12b4c
@ -116,7 +116,7 @@ class ReportAdmin extends LeftAndMain {
|
||||
* @return Form
|
||||
*/
|
||||
public function EditForm() {
|
||||
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : Session::get('currentReport');
|
||||
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : null;
|
||||
|
||||
if($id) {
|
||||
foreach($this->Reports() as $report) {
|
||||
@ -132,7 +132,7 @@ class ReportAdmin extends LeftAndMain {
|
||||
* @return SS_Report
|
||||
*/
|
||||
public function CurrentReport() {
|
||||
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : Session::get('currentReport');
|
||||
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : null;
|
||||
|
||||
if($id) {
|
||||
foreach($this->Reports() as $report) {
|
||||
|
Loading…
Reference in New Issue
Block a user