mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
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:
parent
6ea662cd05
commit
aaaaa86ca4
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user