BUGFIX Using getRecord() instead of DataObject::get_by_id() in CMSMain->getEditForm() to fetch records deleted from stage or live (regression from jsrewrite feature branch)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102790 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 03:28:42 +00:00
parent 6ea662cd05
commit aaaaa86ca4

View File

@ -297,8 +297,8 @@ JS;
// TODO Duplicate record fetching (see parent implementation)
if(!$id) $id = $this->currentPageID();
$record = ($id && $id != "root") ? DataObject::get_by_id($this->stat('tree_class'), $id) : null;
$record = ($id && $id != "root") ? $this->getRecord($id) : null;
$fields = $form->Fields();
$actions = $form->Actions();