From dc5dc6c1a227e7876ec442b58dd8482db54fe0c5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 10 Nov 2008 18:59:01 +0000 Subject: [PATCH] BUGFIX Using 'SiteTree' classname instead of 'Page' in UpgradeSiteTreePermissionSchemaTask to avoid clashes in schema when Page.php has its own tables git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65538 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tasks/UpgradeSiteTreePermissionSchemaTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/UpgradeSiteTreePermissionSchemaTask.php b/tasks/UpgradeSiteTreePermissionSchemaTask.php index 1c0ad58a5..dc197acb5 100644 --- a/tasks/UpgradeSiteTreePermissionSchemaTask.php +++ b/tasks/UpgradeSiteTreePermissionSchemaTask.php @@ -30,7 +30,7 @@ class UpgradeSiteTreePermissionSchemaTask extends BuildTask { // convert has_many to many_many $pageIDs = DB::query("SELECT ID FROM SiteTree")->column('ID'); foreach($pageIDs as $pageID) { - $page = DataObject::get_by_id('Page', $pageID); + $page = DataObject::get_by_id('SiteTree', $pageID); if($page->ViewersGroup) $page->ViewerGroups()->add($page->ViewersGroup); if($page->EditorsGroup) $page->EditorGroups()->add($page->EditorsGroup);