mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ENHANCEMENT: make the currentRecord of ModelAdmin_RecordControll accessible by adding ModelAdmin_RecordControll::geCurrentRecord(), this is to fix bugs for those ComplexTableField fields generated automatically by relations.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73579 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c66ebfaeb8
commit
031b88d0f3
@ -916,6 +916,10 @@ class ModelAdmin_RecordController extends Controller {
|
|||||||
Director::redirect(Controller::join_links($this->Link(), 'edit'));
|
Director::redirect(Controller::join_links($this->Link(), 'edit'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getCurrentRecord(){
|
||||||
|
return $this->currentRecord;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user