# HG changeset patch # User Chris Cannam # Date 1312896550 -3600 # Node ID b18f1971024270549cbe7fa2e4f18ca505206068 # Parent a76abc63257af93369514fa7d5a3dee063ad79fc Eliminate duplicates in returned author/user list by using user object instead of user id diff -r a76abc63257a -r b18f19710242 vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Mon Aug 08 18:13:30 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Aug 09 14:29:10 2011 +0100 @@ -223,7 +223,7 @@ end authors_list.each do |author| - @results << author unless users_list.include?(author.user_id) + @results << author unless users_list.include?(author.user) end render :layout => false