FEATURE: Add new site setting list type with name and values (#16045)

These changes include a bug fix because allow_any attribute of site
settings was completely ignored before.
This commit is contained in:
Bianca Nenciu
2022-03-08 13:18:43 +02:00
committed by GitHub
parent fd34ddef8a
commit 4fe99e39c3
5 changed files with 55 additions and 0 deletions

View File

@@ -164,6 +164,10 @@ class SiteSettings::TypeSupervisor
end
end
if type == :list
result[:allow_any] = @allow_any[name]
end
result[:choices] = @choices[name] if @choices.has_key? name
result[:list_type] = @list_type[name] if @list_type.has_key? name
result[:textarea] = @textareas[name] if @textareas.has_key? name