Mercurial > hg > soundsoftware-site
changeset 1415:8e2e4557fa75 biblio_alt_search_auth
Converting author/user ids to integers when calling link_to helpers.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 14:58:04 +0100 |
parents | 07444815c0bd |
children | 96ffcd574b96 |
files | plugins/redmine_bibliography/app/helpers/publications_helper.rb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 14:39:12 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Oct 01 14:58:04 2013 +0100 @@ -134,9 +134,9 @@ s= "" if link_class == "Author" - s << link_to_author(Author.find(link_id), {}, :class => 'author_link') + s << link_to_author(Author.find(link_id.to_i)) else - s << link_to_user(User.find(link_id), :class => 'publication_project') + s << link_to_user(User.find(link_id.to_i)) end s.html_safe