0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/controllers/admin/config
Gabriel Grubba f9f1540323
FIX: Report effective welcome banner state for themes without overrides (#42451)
Previously, the `themes-with-setting` endpoint reported themes with no
`ThemeSiteSetting` override as disabled, even though a missing override
means the theme inherits the `enable_welcome_banner` default (true), so
saving unrelated fields on the admin welcome-banner form silently
persisted `false` and hid the banner for those themes.

This change falls back to `SiteSetting.defaults[:enable_welcome_banner]`
only when no override row exists — while still reporting explicit
`false` overrides correctly — matching how
`ThemeSiteSetting.generate_theme_map` and `ThemeSiteSettingResolver`
resolve effective values.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1666

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-08-10 11:48:18 -03:00
..
about_controller.rb FEATURE: Localizable /about page fields via its settings page (#41123) 2026-06-26 20:41:08 +08:00
category_management_controller.rb FEATURE: Category management UI for admins (#41218) 2026-07-15 09:17:25 +10:00
color_palettes_controller.rb DEV: Remove dual mode support for palettes and drop theme-owned palettes (#34467) 2025-08-26 06:24:11 +03:00
customize_controller.rb FEATURE: Move theme site settings config page to a tab in the customize page (#34376) 2025-08-20 12:03:47 +10:00
design_wizard_controller.rb FEATURE: Design wizard (#42178) 2026-08-07 06:34:46 -05:00
discourse_id_controller.rb FIX: Log Discourse ID setting changes to staff action logs (#37649) 2026-02-10 18:18:35 +11:00
flags_controller.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
fonts_controller.rb DEV: Allow specifying dependent settings in configuration (#36061) 2025-11-27 13:23:43 +08:00
logo_controller.rb FEATURE: generated OpenGraph images for topics (#39194) 2026-06-26 10:37:10 -04:00
site_settings_controller.rb
upcoming_changes_controller.rb FEATURE: Merge permanent upcoming changes with new features feed (#38526) 2026-03-25 07:52:31 +10:00
welcome_banner_controller.rb FIX: Report effective welcome banner state for themes without overrides (#42451) 2026-08-10 11:48:18 -03:00