diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-09-29 01:15:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 01:15:09 +0200 |
commit | 1a5150e9c364635b989cd0983dac259f94dbbea9 (patch) | |
tree | a7d0eac0f7bd2fce46c35a6e26304abeec01c9f3 | |
parent | ce5d092a86997194db3eaeecc12aa4aba185b231 (diff) |
Fix content retention policy settings not accepting a blank value (#19248)
-rw-r--r-- | app/models/form/admin_settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/form/admin_settings.rb b/app/models/form/admin_settings.rb index 3a7150916..1e6061277 100644 --- a/app/models/form/admin_settings.rb +++ b/app/models/form/admin_settings.rb @@ -67,7 +67,7 @@ class Form::AdminSettings validates :bootstrap_timeline_accounts, existing_username: { multiple: true } validates :show_domain_blocks, inclusion: { in: %w(disabled users all) } validates :show_domain_blocks_rationale, inclusion: { in: %w(disabled users all) } - validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true } + validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true }, allow_blank: true def initialize(_attributes = {}) super |