Skip to content

Commit

Permalink
BUG: Fix link migration task.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Jun 1, 2023
1 parent 9744bd8 commit b328570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tasks/LinkableMigrationTask.php
Expand Up @@ -84,6 +84,7 @@ class LinkableMigrationTask extends BuildTask

/**
* LinkableLink field => LinkField_Link field
* Note: If Link is versioned on your project add Version field to the mapping
*
* @config
* @var string[]
Expand Down Expand Up @@ -333,7 +334,7 @@ protected function insertLink(string $className, array $linkableData, string $or
// If we're processing the _Versions table, then we need to add all the Version table field assignments that are
// specifically for the base record (such as all the "WasPublished", "WasDraft", etc fields)
if ($originTable === self::TABLE_VERSIONS) {
$config += $this->config()->get('versions_mapping_global');
$config += $this->config()->get('versions_mapping_base_only');
}

// These assignments are based on our config
Expand Down

0 comments on commit b328570

Please sign in to comment.