Issue #2907233 by quietone, madlobz, heddn, maxocub: File migration from D6 to D8 version using Migrate Drupal UI

8.5.x
webchick 2017-09-29 16:56:50 +02:00
parent df0b92d351
commit 8685e7c72f
2 changed files with 12 additions and 3 deletions

View File

@ -403,9 +403,13 @@ class MigrateUpgradeForm extends ConfirmFormBase {
// Store the retrieved migration IDs in form storage.
$form_state->set('version', $version);
$form_state->set('migrations', $migration_array);
if ($version == 6) {
$form_state->set('source_base_path', $form_state->getValue('d6_source_base_path'));
}
else {
$form_state->set('source_base_path', $form_state->getValue('source_base_path'));
}
$form_state->set('source_private_file_path', $form_state->getValue('source_private_file_path'));
// Store the retrived system data in form storage.
$form_state->set('system_data', $system_data);
}

View File

@ -131,10 +131,15 @@ abstract class MigrateUpgradeTestBase extends BrowserTestBase {
$version = $this->getLegacyDrupalVersion($this->sourceDatabase);
$edit = [
$driver => $connection_options,
'source_base_path' => $this->getSourceBasePath(),
'source_private_file_path' => $this->getSourceBasePath(),
'version' => $version,
];
if ($version == 6) {
$edit['d6_source_base_path'] = $this->getSourceBasePath();
}
else {
$edit['source_base_path'] = $this->getSourceBasePath();
}
if (count($drivers) !== 1) {
$edit['driver'] = $driver;
}