mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Properly support defaults for upload site settings.
This commit is contained in:
@@ -177,7 +177,7 @@ class SiteSettings::TypeSupervisor
|
||||
elsif type == self.class.types[:enum]
|
||||
val = @defaults_provider[name].is_a?(Integer) ? val.to_i : val.to_s
|
||||
elsif type == self.class.types[:upload] && val.present?
|
||||
val = val.id
|
||||
val = val.is_a?(Integer) ? val : val.id
|
||||
end
|
||||
|
||||
[val, type]
|
||||
|
||||
Reference in New Issue
Block a user