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:
@ -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 () {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user