From cd9f295540faa2ad505885da04b1868fee091f72 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 30 Aug 2010 05:31:24 +0000 Subject: [PATCH] MINOR Removed removeDuplicates() call on linked pages DataObjectSet in MigrateSiteTreeLinkingTask which is no longer required, as the duplicate results were fixed in DataObject directly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@110200 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tasks/MigrateSiteTreeLinkingTask.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tasks/MigrateSiteTreeLinkingTask.php b/tasks/MigrateSiteTreeLinkingTask.php index 38952efe5..1f2a95da7 100755 --- a/tasks/MigrateSiteTreeLinkingTask.php +++ b/tasks/MigrateSiteTreeLinkingTask.php @@ -22,10 +22,6 @@ class MigrateSiteTreeLinkingTask extends BuildTask { 'INNER JOIN "SiteTree_LinkTracking" ON "SiteTree_LinkTracking"."SiteTreeID" = "SiteTree"."ID"' ); - // Databases like MSSQL will give duplicate results - remove them - // This would normally be fixed by using SELECT DISTINCT, but DataObject::get() doesn't support it - if($linkedPages) $linkedPages->removeDuplicates(); - if($linkedPages) foreach($linkedPages as $page) { $tracking = DB::query(sprintf('SELECT "ChildID", "FieldName" FROM "SiteTree_LinkTracking" WHERE "SiteTreeID" = %d', $page->ID))->map();