Fixed: Migration script suggests displays "Upgrade completed!" text and allows the user to click the "Go to MailPoet" button while the migration is still being performed.

This commit is contained in:
fred
2017-06-06 19:03:50 +02:00
parent cbf0a7684f
commit 2c93a105cc
2 changed files with 3 additions and 4 deletions

View File

@ -18,8 +18,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function(MailPoet, jQuery) {
},
updateDisplay: function () {
MailPoet.MP2Migrator.displayLogs();
MailPoet.MP2Migrator.updateProgressbar();
MailPoet.MP2Migrator.displayLogs_timeout = setTimeout(MailPoet.MP2Migrator.displayLogs, 1000);
MailPoet.MP2Migrator.updateProgressbar_timeout = setTimeout(MailPoet.MP2Migrator.updateProgressbar, 1000);
},
displayLogs: function () {

View File

@ -140,10 +140,9 @@ class MP2Migrator {
if(!Setting::getValue('mailpoet_migration_started', false)) {
$this->eraseMP3Data();
Setting::setValue('mailpoet_migration_started', true);
$this->displayDataToMigrate();
}
$this->displayDataToMigrate();
$this->importSegments();
$this->segments_mapping = $this->getImportedMapping('segments');
$this->importCustomFields();