mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user