Skip to content
Snippets Groups Projects

Issue #3347429: Saving Encryption profile settings the first time results in fatal

+ 2
2
@@ -208,9 +208,9 @@ class Settings extends ConfigFormBase {
->set('encryption_profile', $form_state->getValue('encryption_profile'))
->save();
// By the time we get here, all settings are stored, with the old profil.
// By the time we get here, all settings are stored, with the old profile.
// If the profile has changed, we now have to re-encrypt all the values.
if ($old_profile_id !== $new_profile_id) {
if (!empty($old_profile_id) && $old_profile_id !== $new_profile_id) {
$this->encryptionUpdate->update($old_profile_id, $new_profile_id);
}
Loading