Skip to content

fix: use after_initialize instead of to_prepare for patch loading - #5

Draft
ciremoussadia wants to merge 2 commits into
masterfrom
6.1-migration
Draft

fix: use after_initialize instead of to_prepare for patch loading#5
ciremoussadia wants to merge 2 commits into
masterfrom
6.1-migration

Conversation

@ciremoussadia

Copy link
Copy Markdown
Collaborator

Rails.configuration.to_prepare never actually fired for this plugin's prepends in this app (Query/IssueQuery never got RedmineWorkflowHiddenFields patched in, verified via IssueQuery.ancestors on a fresh boot), while the sibling z_sante plugin's identical prepend pattern under RedmineApp::Application.config.after_initialize works reliably. Switching to the same after_initialize hook fixes it. Unrelated to the Redmine 6.1 bump itself; found incidentally while smoke-testing it.

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