diff --git a/lib/API/JSON/v1/Settings.php b/lib/API/JSON/v1/Settings.php index 0dca41b555..b775b22c99 100644 --- a/lib/API/JSON/v1/Settings.php +++ b/lib/API/JSON/v1/Settings.php @@ -56,8 +56,7 @@ class Settings extends APIEndpoint { ]); } else { $old_settings = $this->settings->getAll(); - // Will be uncommented on task [MAILPOET-1998] - // $signup_confirmation = $this->settings->get('signup_confirmation.enabled'); + $signup_confirmation = $this->settings->get('signup_confirmation.enabled'); foreach ($settings as $name => $value) { $this->settings->set($name, $value); } @@ -66,10 +65,9 @@ class Settings extends APIEndpoint { $this->bridge->onSettingsSave($settings); $this->authorized_emails_controller->onSettingsSave($settings); - // Will be uncommented on task [MAILPOET-1998] - // if ($signup_confirmation !== $this->settings->get('signup_confirmation.enabled')) { - // Form::updateSuccessMessages(); - // } + if ($signup_confirmation !== $this->settings->get('signup_confirmation.enabled')) { + Form::updateSuccessMessages(); + } return $this->successResponse($this->settings->getAll()); } } diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index f4bee34cf7..7f6ce0b578 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -160,10 +160,10 @@ class Populator { $this->scheduleBeamer(); $this->updateLastSubscribedAt(); $this->enableStatsNotificationsForAutomatedEmails(); + $this->scheduleUnsubscribeTokens(); $this->detectReferral(); - // Will be uncommented on task [MAILPOET-1998] - // $this->updateFormsSuccessMessages(); + $this->updateFormsSuccessMessages(); } private function createMailPoetPage() {