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

Conflict with Redmineup_Tags #308

Open
mkrivoshlyk opened this issue Oct 28, 2019 · 1 comment
Open

Conflict with Redmineup_Tags #308

mkrivoshlyk opened this issue Oct 28, 2019 · 1 comment

Comments

@mkrivoshlyk
Copy link

mkrivoshlyk commented Oct 28, 2019

I've faced the same problem as the one described here as the issue 306. #306
I'm getting error 500 when I click CKeditor Settings link. Would appreciate a fix for the case.

Processing by SettingsController#plugin as HTML
Parameters: {"id"=>"redmine_ckeditor"}
Current user: Sigvard (id=5)
Rendering settings/plugin.html.erb within layouts/admin
Rendered plugins/redmine_ckeditor/app/views/settings/_ckeditor.html.erb (81.9ms)
Rendered settings/plugin.html.erb within layouts/admin (83.4ms)
Completed 500 Internal Server Error in 154ms (ActiveRecord: 48.5ms)

ActionView::Template::Error (undefined local variable or method `ckeditor_javascripts' for #<#Class:0x000055a8f34c6e08:0x000055a8f4a50440>):
1: <%= ckeditor_javascripts %>
2: <%= stylesheet_link_tag 'editor', :plugin => 'redmine_ckeditor'%>
3: <%= stylesheet_link_tag 'selector', :plugin => 'redmine_ckeditor'%>
4:

plugins/redmine_ckeditor/app/views/settings/_ckeditor.html.erb:1:in _plugins_redmine_ckeditor_app_views_settings__ckeditor_html_erb___4245038663652444399_47092075316380' app/views/settings/plugin.html.erb:6:in block in _app_views_settings_plugin_html_erb__3986888229509949413_47092073992740'
app/views/settings/plugin.html.erb:4:in _app_views_settings_plugin_html_erb__3986888229509949413_47092073992740' lib/redmine/sudo_mode.rb:63:in sudo_mode'

@blackhase
Copy link

blackhase commented Jan 13, 2020

Hi,
i have some Problem.
Replace first line (plugins/redmine_ckeditor/app/views/settings/_ckeditor.html.erb)
<%= ckeditor_javascripts %>
by
<%= RedmineCkeditor::Helper.instance_method(:ckeditor_javascripts).bind(self).call %>.
and restart migrate.
This works for me.

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

No branches or pull requests

2 participants