mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 03:09:43 +00: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…
x
Reference in New Issue
Block a user