Readd a default for enable_sounds in json_change_settings.

Previously a default was missing from this function, which resulted in
users being unable to change their settings if they tried to disable
sounds.

(imported from commit 2dae67dcb2e8cb986abb6dee9659be2192993dd9)
This commit is contained in:
Luke Faraone 2013-05-10 15:15:57 -07:00
parent 237b1077ed
commit e18d76f4dd

View File

@ -1285,7 +1285,8 @@ def json_change_settings(request, user_profile, full_name=REQ,
# because browsers POST nothing for an unchecked checkbox
enable_desktop_notifications=REQ(converter=lambda x: x == "on",
default=False),
enable_sounds=REQ(converter=lambda x: x == "on"),
enable_sounds=REQ(converter=lambda x: x == "on",
default=False),
enable_offline_email_notifications=REQ(converter=lambda x: x == "on",
default=False)):
if new_password != "" or confirm_password != "":