Skip to content

Fix plugin settings to display default values when not configured in the DB#7484

Open
himi-sh wants to merge 2 commits intoChocobozzz:developfrom
himi-sh:himi-sh/feature-plugin-settings-default
Open

Fix plugin settings to display default values when not configured in the DB#7484
himi-sh wants to merge 2 commits intoChocobozzz:developfrom
himi-sh:himi-sh/feature-plugin-settings-default

Conversation

@himi-sh
Copy link

@himi-sh himi-sh commented Mar 9, 2026

Description

Fix an issue where settingsManager.getSetting() returns undefined when a setting has not yet been configured by an administrator, even if a default value is provided during registerSetting

Related issues

Fixed issue of #6660

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this PR does not update server code
  • 🙋 no, because I need help

Screenshots

These screenshots demonstrate the default value on the Plugin settings page

Screenshot 2026-03-08 at 5 11 26 PM Screenshot 2026-03-08 at 5 10 45 PM

@himi-sh himi-sh changed the title Himi sh/feature plugin settings default Fix plugin settings to display default values when not configured in the DB #6660 Mar 9, 2026
@himi-sh himi-sh changed the title Fix plugin settings to display default values when not configured in the DB #6660 Fix plugin settings to display default values when not configured in the DB Mar 9, 2026
@himi-sh himi-sh marked this pull request as ready for review March 9, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant