Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Removed removeDuplicates() call on linked pages DataObjectSet i…

…n 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
  • Loading branch information...
commit 065155eb5dd59663179a45261b97b89a0817c009 1 parent 2f159ce
@sminnee sminnee authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 tasks/MigrateSiteTreeLinkingTask.php
View
4 tasks/MigrateSiteTreeLinkingTask.php
@@ -22,10 +22,6 @@ public function run($request) {
'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();

0 comments on commit 065155e

Please sign in to comment.
Something went wrong with that request. Please try again.