Skip to content

Commit

Permalink
Fix site preferences to be submittable when rating preference is disa…
Browse files Browse the repository at this point in the history
…bled (#1405)

Disabled form fields aren’t submitted.
  • Loading branch information
charmander authored Apr 20, 2024
2 parents 07c3f9f + 6636266 commit 00eb03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyl/controllers/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def control_editpreferences_post_(request):
follow_s="", follow_c="", follow_f="", follow_t="",
follow_j="")

rating = ratings.CODE_MAP[define.get_int(form.rating)]
rating = ratings.CODE_MAP.get(define.get_int(form.rating), ratings.GENERAL)
jsonb_settings = define.get_profile_settings(request.userid)
jsonb_settings.disable_custom_thumbs = form.custom_thumbs == "disable"

Expand Down

0 comments on commit 00eb03b

Please sign in to comment.