mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
FIX use of DataList#innerJoin expecting it to be mutable
This commit is contained in:
parent
2e164eae51
commit
546762ec5c
@ -16,7 +16,7 @@ class MigrateSiteTreeLinkingTask extends BuildTask {
|
|||||||
$links = 0;
|
$links = 0;
|
||||||
|
|
||||||
$linkedPages = new DataList('SiteTree');
|
$linkedPages = new DataList('SiteTree');
|
||||||
$linkedPages->innerJoin('SiteTree_LinkTracking', '"SiteTree_LinkTracking"."SiteTreeID" = "SiteTree"."ID"');
|
$linkedPages = $linkedPages->innerJoin('SiteTree_LinkTracking', '"SiteTree_LinkTracking"."SiteTreeID" = "SiteTree"."ID"');
|
||||||
if($linkedPages) foreach($linkedPages as $page) {
|
if($linkedPages) foreach($linkedPages as $page) {
|
||||||
$tracking = DB::query(sprintf('SELECT "ChildID", "FieldName" FROM "SiteTree_LinkTracking" WHERE "SiteTreeID" = %d', $page->ID))->map();
|
$tracking = DB::query(sprintf('SELECT "ChildID", "FieldName" FROM "SiteTree_LinkTracking" WHERE "SiteTreeID" = %d', $page->ID))->map();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user