Merge pull request #287 from nverba/settings

fixed SiteSettings without defaults Type of Null
This commit is contained in:
Robin Ward 2013-03-01 08:46:18 -08:00
commit 0c8c41b131

View file

@ -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