From 7ea8f1c7f47cfa1e67faa269fe77c4f56162ad1a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 04:02:41 +0000 Subject: [PATCH] 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 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 8f3759dc..47499a1f 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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