0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 20:29:55 +08:00
discourse/app/services/categories
Krzysztof Kotlarek 82634c97ac
FIX: Don't reset customized site settings when new category (#41864)
Previously, the category creation form prefilled category type site
settings with the type's recommended defaults, so creating another
category of the same type (e.g. Ideas) silently reset any values the
admin had customized — and logged the reset in the staff action log
under their name.

This change serializes an `overridden` flag with each setting in the
configuration schema and makes the form prefill the current value for
overridden settings, only suggesting the recommended default for
settings the admin has never customized.

Before it worked correctly when category was edited.
2026-07-21 14:33:07 +08:00
..
types FIX: Don't reset customized site settings when new category (#41864) 2026-07-21 14:33:07 +08:00
configure.rb FIX: Moderators can enable plugins when enable_category_type_setup SiteSetting is enabled (#40349) 2026-06-17 08:37:14 -05:00
type_registry.rb FEATURE: Category management UI for admins (#41218) 2026-07-15 09:17:25 +10:00
unconfigure.rb FEATURE: add API for custom composer actions, new "event" composer action (#40203) 2026-05-28 09:56:34 -04:00