Disable automatic message updating temporary

This commit is contained in:
Amine Ben hammou
2019-04-24 17:33:11 +02:00
committed by M. Shull
parent 6a55f2f663
commit 937b0229e5
2 changed files with 8 additions and 5 deletions

View File

@ -41,7 +41,8 @@ class Settings extends APIEndpoint {
)); ));
} else { } else {
$original_inactivation_interval = (int)$this->settings->get('deactivate_subscriber_after_inactive_days'); $original_inactivation_interval = (int)$this->settings->get('deactivate_subscriber_after_inactive_days');
$signup_confirmation = $this->settings->get('signup_confirmation.enabled'); // Will be uncommented on task [MAILPOET-1998]
// $signup_confirmation = $this->settings->get('signup_confirmation.enabled');
foreach ($settings as $name => $value) { foreach ($settings as $name => $value) {
$this->settings->set($name, $value); $this->settings->set($name, $value);
} }
@ -52,9 +53,10 @@ class Settings extends APIEndpoint {
} }
$bridge = new Bridge(); $bridge = new Bridge();
$bridge->onSettingsSave($settings); $bridge->onSettingsSave($settings);
if ($signup_confirmation !== $this->settings->get('signup_confirmation.enabled')) { // Will be uncommented on task [MAILPOET-1998]
Form::updateSuccessMessages(); // if ($signup_confirmation !== $this->settings->get('signup_confirmation.enabled')) {
} // Form::updateSuccessMessages();
// }
return $this->successResponse($this->settings->getAll()); return $this->successResponse($this->settings->getAll());
} }
} }

View File

@ -134,7 +134,8 @@ class Populator {
$this->createSourceForSubscribers(); $this->createSourceForSubscribers();
$this->updateNewsletterCategories(); $this->updateNewsletterCategories();
$this->scheduleInitialInactiveSubscribersCheck(); $this->scheduleInitialInactiveSubscribersCheck();
$this->updateFormsSuccessMessages(); // Will be uncommented on task [MAILPOET-1998]
// $this->updateFormsSuccessMessages();
} }
private function createMailPoetPage() { private function createMailPoetPage() {