redmine_didyoumean icon indicating copy to clipboard operation
redmine_didyoumean copied to clipboard

not working with redmine 2.4

Open morph027 opened this issue 10 years ago • 4 comments

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)

morph027 avatar Nov 26 '13 10:11 morph027

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.

AdamWardUK avatar Feb 11 '14 11:02 AdamWardUK

Thanks, seems to work in my test-clone!

morph027 avatar Feb 11 '14 12:02 morph027

I'm delighted to have been useful - thanks for letting me know :-)

AdamWardUK avatar Feb 12 '14 18:02 AdamWardUK

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.

rlisowski avatar Feb 14 '15 23:02 rlisowski