mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
fixed SiteSettings without defaults Type of Null
This commit is contained in:
parent
37175c264a
commit
2ca81e8afa
1 changed files with 4 additions and 0 deletions
|
@ -151,6 +151,10 @@ module SiteSettingExtension
|
|||
val = val.to_i
|
||||
end
|
||||
|
||||
if type == Types::Null && val != ''
|
||||
type = get_data_type(val)
|
||||
end
|
||||
|
||||
if setting
|
||||
setting.value = val
|
||||
setting.data_type = type
|
||||
|
|
Loading…
Reference in a new issue