mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:32:45 +08:00
Merge pull request #280 from nverba/patch-1
Quick fix for Boolean SiteSettings
This commit is contained in:
commit
37175c264a
|
@ -144,7 +144,7 @@ module SiteSettingExtension
|
|||
type = get_data_type(defaults[name])
|
||||
|
||||
if type == Types::Bool && val != true && val != false
|
||||
val = (val == "t" || val == "true")
|
||||
val = (val == "t" || val == "true") ? 't' : 'f'
|
||||
end
|
||||
|
||||
if type == Types::Fixnum && !(Fixnum === val)
|
||||
|
|
Loading…
Reference in New Issue
Block a user