-
Notifications
You must be signed in to change notification settings - Fork 30
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
Compatibility with other plugins #16
Comments
I was faced with the same problem when installing plugins which have project setting tab such as Default Custom Query , DMSF and so on. According to following article, declaring a new helper is better than using "prepend". https://jkraemer.net/2018/05/add-a-project-settings-tab-for-your-redmine-plugin I tried to change my local environment like this and solved it. diff --git a/lib/wiki_extensions_projects_helper_patch.rb b/lib/wiki_extensions_projects_helper_patch.rb
index 2fc4857..38411c4 100644
--- a/lib/wiki_extensions_projects_helper_patch.rb
+++ b/lib/wiki_extensions_projects_helper_patch.rb
@@ -32,4 +32,4 @@ module ProjectsHelperMethodsWikiExtensions
end
end
-ProjectsHelper.prepend(ProjectsHelperMethodsWikiExtensions)
+ProjectsController.send :helper, ProjectsHelperMethodsWikiExtensions Regards. |
Thx! Works like a charm. It resolve a conflict issue with redmine Usability plugin. But still requires switching formatting from textile to markdown. |
Thanks, this fix on redmine_wiki_extensions saved me. |
@haru |
Similar problem with redmine_wiki_extensions/lib/wiki_extensions_notifiable_patch.rb and the redmine_checklists plugin. Creates an infinite loop when accessing the settings page. Probably should replace all prepends with send... |
This was patched in September, though I don't understand why it was done through an apply function, still struggling to understand ruby. |
|
@haru |
Hi,
The way the project_settings_tabs method is written in the ProjectsHelperMethodsWikiExtensions module makes it impossible to have multiple overrides of this method.
please find a fix in the development branch of my fork :
https://github.com/Utopism/redmine_wiki_extensions/commits/develop
The text was updated successfully, but these errors were encountered: