mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
APICHANGE: Refactor Versioned so a single state is kept for stage, archived date, or any module specific reading modes (from r98161) (from r99119)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111604 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
201e6a5d7c
commit
4c510624b1
@ -282,7 +282,7 @@ JS;
|
||||
singleton($treeClass)->flushCache();
|
||||
|
||||
$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
|
||||
|
Loading…
x
Reference in New Issue
Block a user