mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #287 from nverba/settings
fixed SiteSettings without defaults Type of Null
This commit is contained in:
commit
0c8c41b131
@ -151,6 +151,10 @@ module SiteSettingExtension
|
|||||||
val = val.to_i
|
val = val.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if type == Types::Null && val != ''
|
||||||
|
type = get_data_type(val)
|
||||||
|
end
|
||||||
|
|
||||||
if setting
|
if setting
|
||||||
setting.value = val
|
setting.value = val
|
||||||
setting.data_type = type
|
setting.data_type = type
|
||||||
|
Loading…
Reference in New Issue
Block a user