changeset 566:b18f19710242 feature_36

Eliminate duplicates in returned author/user list by using user object instead of user id
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 09 Aug 2011 14:29:10 +0100
parents a76abc63257a
children 5404f7dfb4b3
files vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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