discourse/discourse — pull request #287 by nverba (2013-02-28 00:41:53+00:00)
Title: fixed SiteSettings without defaults Type of Null

This resolves the issue of SiteSettings without defined defaults saving as the wrong data type in the db. It resets the type to Null when the field is reset, and sets it to the the Type of the value when set.

*This makes it work, but clicking 'reset to default' on a defaultless setting on a newly loaded page does not clear the field as one would expect. Perhaps someone with more experience of Ember can get the field to clear when the value is set to Null. This is purely cosmetic though, a page refresh will show the text field as being empty.