redmine_didyoumean
redmine_didyoumean copied to clipboard
not working with redmine 2.4
Hi!
I've just upgraded our staging redmine instance to 2.4.1 and you plugin does not work anymore. There's no error, it just won't display the popup.
This is the output when rendering the new issue page:
Started GET "/projects/test/issues/new" for x.x.x.x at 2013-11-26 11:09:00 +0100
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"admin"}
Current user: test.user (id=15)
Rendered plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb (1.4ms)
Rendered issues/_form_custom_fields.html.erb (4.4ms)
Rendered issues/_attributes.html.erb (80.7ms)
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. (called from block in render_on at /usr/share/redmine/redmine-2.4-stable/lib/redmine/hook.rb:111)
Rendered plugins/redmine_didyoumean/app/views/issues/_didyoumean_injected.html.erb (2.7ms)
Rendered plugins/redmine_issue_checklist/app/views/issues/_checklist_form.html.erb (1.2ms)
Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_issues_form_details_bottom.html.erb (4.5ms)
Rendered issues/_form.html.erb (103.4ms)
Rendered attachments/_form.html.erb (1.3ms)
Rendered issues/new.html.erb within layouts/base (110.4ms)
Rendered plugins/redmine_sudo/app/views/sudo/_sudo_styles.html.erb (0.1ms)
Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (4.2ms)
Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (0.2ms)
Completed 200 OK in 234.7ms (Views: 118.1ms | ActiveRecord: 32.5ms)
Try this (logged in as root):
cd /usr/share/redmine mkdir -p public/plugin_assets/redmine_didyoumean/stylesheets cp plugin/redmine_didyoumean/assets/stylesheets/didyoumean.css public/plugin_assets/redmine_didyoumean/stylesheets/ mkdir -p public/plugin_assets/redmine_didyoumean/javascripts cp plugins/redmine_didyoumean/assets/javascripts/didyoumean.js public/plugin_assets/redmine_didyoumean/javascripts/
Can't say I understand much of this redmine/ruby/rails stuff, so I'm not in a position to suggest how the migration stuff (init.rb?) should be tweaked to get this right for 2.4.x or offer a patch. BTW, I'm running 2.4.2.stable. Oh, I also did the tweak suggested in issue 49 before this.
Thanks, seems to work in my test-clone!
I'm delighted to have been useful - thanks for letting me know :-)
It's common problem. There is redmine rake task which will do it for you. http://www.redmine.org/projects/redmine/wiki/RedmineRake#rake-redminepluginsassets
I think it's not a bug in redmine_didyoumean.