# HG changeset patch # User luisf # Date 1380636443 -3600 # Node ID 96ffcd574b961a174e1b5995be24504da9a90aef # Parent 8e2e4557fa7579d1697915ff6a62a60eae02dd42 No longer using the link_to helpers to generate the links on the render_authorship_link helper function. diff -r 8e2e4557fa75 -r 96ffcd574b96 plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 14:58:04 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 15:07:23 2013 +0100 @@ -134,9 +134,11 @@ s= "" if link_class == "Author" - s << link_to_author(Author.find(link_id.to_i)) + url = {:controller => 'authors', :action => 'show', :id => link_id} + s << link_to(h(Author.find(link_id).name), url) else - s << link_to_user(User.find(link_id.to_i)) + url = {:controller => 'users', :action => 'show', :id => link_id} + s << link_to(h(User.find(link_id).name), url) end s.html_safe