mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
APICHANGE: Refactor Versioned so a single state is kept for stage, archived date, or any module specific reading modes (from r98161)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99119 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
82f95ae415
commit
7ea8f1c7f4
@ -390,7 +390,7 @@ JS;
|
|||||||
singleton($treeClass)->flushCache();
|
singleton($treeClass)->flushCache();
|
||||||
|
|
||||||
$record = DataObject::get_one( $treeClass, "\"$treeClass\".\"ID\" = $id");
|
$record = DataObject::get_one( $treeClass, "\"$treeClass\".\"ID\" = $id");
|
||||||
if($record) Versioned::reading_stage(null);
|
if($record) Versioned::set_reading_mode('');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then, try getting a deleted record
|
// Then, try getting a deleted record
|
||||||
|
Loading…
Reference in New Issue
Block a user