Revision 1416:96ffcd574b96 plugins/redmine_bibliography

View differences:

plugins/redmine_bibliography/app/helpers/publications_helper.rb
134 134
  s= ""
135 135

  
136 136
  if link_class == "Author"
137
    s << link_to_author(Author.find(link_id.to_i))
137
    url = {:controller => 'authors', :action => 'show', :id => link_id}
138
    s << link_to(h(Author.find(link_id).name), url)
138 139
  else
139
    s << link_to_user(User.find(link_id.to_i))
140
    url = {:controller => 'users', :action => 'show', :id => link_id}
141
    s << link_to(h(User.find(link_id).name), url)
140 142
  end
141 143

  
142 144
  s.html_safe

Also available in: Unified diff