Skip to content
Snippets Groups Projects
Unverified Commit 1a5150e9 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix content retention policy settings not accepting a blank value (#19248)

parent ce5d092a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment