Fix #5856: Fix SMTPS Config Migration

This commit is contained in:
Lucas Bartholemy 2022-09-07 14:00:16 +02:00
parent f48deb82b1
commit 9aafdb775c
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ HumHub Changelog
1.12.2 (Unreleased)
-------------------
- Fix #5851: Admin User Settings cannot saved
- Fix #5856: Fix SMTPS Config Migration
1.12.1 (August 15, 2022)

View File

@ -15,7 +15,7 @@ class m220606_205507_mailer_settings extends Migration
{
$setting = Setting::findOne(['name' => 'mailer.encryption', 'module_id' => 'base']);
if ($setting !== null) {
if ($setting->value === 'tls' || $setting->value === 'ssl') {
if ($setting->value === 'ssl') {
Yii::$app->settings->set('mailer.useSmtps', true);
}
$setting->delete();