From f82576deeab0afe0709d4f80cb5d5c21909d5aef Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 1 Oct 2019 20:41:03 +0200 Subject: [PATCH] FIX: Reset watched site settings when default locale changes Some site settings (e.g. `unicode_username_character_whitelist`) depend on the default locale, so we need to reset the watched settings when the locale changes. --- app/models/site_setting.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/site_setting.rb b/app/models/site_setting.rb index f0be63c668..703dce9adb 100644 --- a/app/models/site_setting.rb +++ b/app/models/site_setting.rb @@ -112,6 +112,7 @@ class SiteSetting < ActiveRecord::Base end WATCHED_SETTINGS ||= [ + :default_locale, :attachment_content_type_blacklist, :attachment_filename_blacklist, :unicode_username_character_whitelist,