mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Merge pull request #287 from nverba/settings
fixed SiteSettings without defaults Type of Null
This commit is contained in:
commit
0c8c41b131
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