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:
Ingo Schommer 2010-02-16 04:02:41 +00:00 committed by Sam Minnee
parent 82f95ae415
commit 7ea8f1c7f4

View File

@ -390,7 +390,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