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:
Normann Lou 2009-03-24 06:17:21 +00:00
parent c66ebfaeb8
commit 031b88d0f3

View File

@ -916,6 +916,10 @@ class ModelAdmin_RecordController extends Controller {
Director::redirect(Controller::join_links($this->Link(), 'edit'));
}
function getCurrentRecord(){
return $this->currentRecord;
}
}
?>