Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb @ 519:3be6bc3c2a17 feature_36
Correctly searches and sends the parameters for both users and authors.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 15 Jul 2011 17:21:05 +0100 |
parents | cc267eb99115 |
children | c3abeb11bc2e |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Thu Jul 14 17:10:24 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Fri Jul 15 17:21:05 2011 +0100 @@ -10,7 +10,7 @@ end def identify_author(author) - if author.class == User + if author.class == User author_info = { :name_on_paper => author.name, :user_id => author.id @@ -29,10 +29,10 @@ link_to_function(author.name, "update_author_info(this," + author_info.to_json + ")") end - def choose_author_link(name, authors) + def choose_author_link(name, authors_users) s = '' - authors.sort.each do |author| - s << "#{identify_author author}\n" + authors_users.sort.each do |author_user| + s << "#{identify_author author_user}\n" end s end