Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin setting typo in "fieldset_default_state" key's "all_expended" value #27

Open
sanak opened this issue May 8, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sanak
Copy link
Member

sanak commented May 8, 2024

Problem
This is similar with Redmine core side typo.

Expectation
all_expended should be replaced to all_expanded.

Note
Consider to add migration process in settings and user_preferences tables.
Here is the code snippet of settings table value.

setting = Setting.plugin_redmine_custom_fields_groups
if (
  setting.present? &&
  setting.has_key?('fieldset_default_state') &&
  setting['fieldset_default_state'] == 'all_expended'
)
  setting['fieldset_default_state'] = 'all_expanded'
  Setting.plugin_redmine_custom_fields_groups = setting
end
@sanak sanak added the bug Something isn't working label May 8, 2024
@sanak sanak self-assigned this May 8, 2024
This was referenced Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant