MINOR Removed removeDuplicates() call on linked pages DataObjectSet in MigrateSiteTreeLinkingTask which is no longer required, as the duplicate results were fixed in DataObject directly (from r110200)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112836 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-19 01:28:37 +00:00
parent 2f159ce93e
commit 065155eb5d

View File

@ -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();