Files
discourse/spec
Martin BrennanandJoffrey JAFFEUX b1a9f00bbd FIX: Category custom field chebox was ending up as wrong value (#38270)
When saving the Allow topic owner and staff to mark a reply as the
solution
field, which is a category custom field, because "true" was stored as
a string in the DB then coverted to a boolean for FormKit checkboxes,
when we saved it again the value was later converted to "t" in the
database instead of "true".

We can make the FormKit checkbox a bit more lenient of truthy
values, and also make sure these booleans are converted to string
on the server-side for category custom fields too.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2026-03-05 17:52:48 +01:00
..